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
How does event listener work in java?
What do you understand by actionform?
What is considered as a web component?
What is document root?
What is deployer?
What is component-managed sign-on ?
What is a java developer?
Which is latest technology in java?
What do you understand by connector?
What is ejb container provider?
What is multi tier architecture in j2ee?
What is the preferred size of a component in java?
What are different modules in spring?
What is the name of java compiler?
Hi Friends. I want complete technical flow of j2ee project with following technologies. jsp , servlet , Struts , Hibernate , (should follow mvc-2 design pattern) . with DAO ,DTO SERVICE layers .