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 a component in java?
What is build tool in java?
What is javafx java?
What is connector?
How many types of objects are there in java?
How many types of component events are in java?
What is mean by j2ee?
What is container-managed persistence?
What is main method in java?
What is java gui?
What are the tools in java?
What is data?
What is j2ee called now?
What is authorization constraint?
Who gave the name java?