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


Please Help Members By Posting Answers For Below Questions

What is the difference between javascript and vbscript?

532


Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?

547


Explain about the support of asp for vb script functionality?

528


What is loose binding? Why is it not a good practice to use it?

633


What is the difference between VBScript and JavaScript?

2062






write a program to display configuration of a local system with the help of vb script.

1684


How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'

3271


How can you create an object in vbscript?

612


What's the difference between vbscript and vb.net?

550


How to write functions and sub in vb script?

622


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

1417


What is the use of the date function in the vbscript language?

562


What are class properties?

650


Explain the filter expression?

627


Which operator can be used to check if two numbers are equal or not in vbscript?

650