write a program to swap Two numbers without using temp variable.
Answer Posted / venki
In vb script...............
a=inputbox ("Enter the first value:")
b=inputbox( "Enter the second value:")
msgbox "Before swap a= "&a&" b= "&b
a=cint(a)+cint(b)
b=cint(a)-cint(b)
a=cint(a)-cint(b)
msgbox "After swap a= "&a&" b= "&b
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Wt are the Buses in C Language
What is a ternary operator in c?
What is meant by gets in c?
What is difference between main and void main?
What are c identifiers?
What is declaration and definition in c?
What is null pointer constant?
Why #include is used in c language?
Can you please explain the difference between malloc() and calloc() function?
What is the significance of c program algorithms?
Can we declare variable anywhere in c?
Why use int main instead of void main?
Can include files be nested?
What are terms in math?
What is the use of getchar() function?