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
Write a program to print "hello world" without using a semicolon?
What are identifiers in c?
please send me the code for multiplying sparse matrix using c
What is c mainly used for?
Which built-in library function can be used to match a patter from the string?
Explain what is the difference between a free-standing and a hosted environment?
What are the types of i/o functions?
How to get string length of given string in c?
Explain what will the preprocessor do for a program?
What are data types in c language?
What is array of structure in c programming?
Tell me what are bitwise shift operators?
What are structure members?
Explain the difference between malloc() and calloc() in c?
Explain which function in c can be used to append a string to another string?