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 caller?
What is api in j2ee?
What is authorization constraint?
Is java 100 percent pure object oriented?
How do I become an expert in java?
What is the build file?
What spring is in related to j2ee?
What is 'applet container' ?
How do I run java?
What does java awt stand for?
Describe orm?
What is java application server?
What does java ee stand for?
Difference between save and saveorupdate?
What is container-managed transaction?