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
Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?
Explain the functionality of vbscript?
hi i am trying for testing job for 3+ experience(fake) can u suggest me what type of projects i can keep in my resume and how much of knoeledge i should have abt that project.thnks in advance.urgt plz
Mention the environments where vbscript could be run?
Explain the extension .hta?
Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?
How will you get the largest subscript of an array in vbscript?
How do you declare a variable in vbscript?
Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji
What are the advantages of vbscript?
What is vbscript?
Explain about the asc function?
Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?
Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.
Why is error handling required?