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 do you mean by the deployment descriptor?
What do you understand by actionform?
Is java an assembly language?
What is web container in j2ee?
On which platform j2ee is based?
Is java is a technology?
What are the technologies a java developer must know?
What does j2ee stand for?
What is isv?
What is component-managed sign-on ?
What is callback methods Component methods called by the container to notify the component of important events in its life cycle?
What should a junior java developer know?
What is comment?
What does web module contain?
What are the main components of a class in java?