Write a program to display numeric value in reverse order.
Ex: I have given a number like 7584, It should display in
reverse order like 4857.
Answer Posted / pankaj
int n=1856,rem,n1,temp=0;
for(int i=0;n>=1;i++)
{
rem=n%10;
n=n/10;
temp=(temp*10)+rem;
}
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is fatal error?
What does j2ee stand for?
How do I run java?
What are the components of awt in java?
What is data?
What is a thin client?
What does the web module contain?
What is mean by j2ee?
What is the ear file?
How to create object without using the keyword “new” in java?
What is mean by connection pooling?
Is java 100 percent pure object oriented?
What is a java developer?
What do you understand by connector?
What is a jbutton in java?