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 entity reference?
What is Document Object Model?
Why do we use j2ee?
What is j2ee application?
What do you mean by the deployment descriptor?
What is java application server?
What is business logic?
What is java 2 platform, micro edition (j2me)?
What is j2ee api?
What do you understand by business logic?
Why java is called portable language?
Why awt is used in java?
What is j2ee called now?
What is java 2 platform, enterprise edition (j2ee)?
What is initialization parameter?