Hi, Anybody could tell me What is the script for Reverse of
Given number. Ex:236--632. Thanks in Advance..
Answer Posted / rohit_allinterview
int reverse(int num)
{
int temp,num2=0;
printf("Original number is %d",num);
while(num!=0)
{
temp=num%10;
num=num/10;
num2=num2+temp;
num2=num2*10;
}
num=num2/10;
printf("Reversed Number is %d",num);
}
// Incase of any mistake or doubt plz drop mailto
rohit_vit2020@yahoo.co.in
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between javascript and vbscript?
Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?
Explain about the support of asp for vb script functionality?
What is loose binding? Why is it not a good practice to use it?
What is the difference between VBScript and JavaScript?
write a program to display configuration of a local system with the help of vb script.
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'
How can you create an object in vbscript?
What's the difference between vbscript and vb.net?
How to write functions and sub in vb script?
i wrote vbscripit code in notepad i got error i am in learning stage if u ps tell me what wrong in my code my error is "object required descriptive at line one run time error"and my code is "set usernameobj=Descriptive.Create() usernameobj( "name").value="Username" set passwordobj=Descriptive.Create() passwordobj("name").value="password" set signinobj=Descriptive.Create() signinobj("name").value="sigin" browser("gmail").page("gmail").WebEdit("usernameobj").set ("enter username") Browser("gmail").Page("gmail").WebEdit("passwordobj").Set secure.Crypt.Encrypt("enter password") browser("gmail").page("gmail").WebButton("siginobj").click
What is the use of the date function in the vbscript language?
What are class properties?
Explain the filter expression?
Which operator can be used to check if two numbers are equal or not in vbscript?