adspace


write a program to display reverse of a number using for
loop?

Answer Posted / rakesh ranjan

#include<conio.h>
#include<stdio.h>
main()
{
int x,n,i;
printf("entre the number");
scanf("%d",&n);
for(;n>0;)
{
x=n%10;
printf("%d",x);
n/=10;
}
getch();
}

Is This Answer Correct ?    15 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a progrmm in c language take user interface generate table using for loop?

2122


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

1942


write a program to find out prime number using sieve case?

2174


What are compound statements?

1289


will u please send me the placement papers to my mail???????????????????

1925


How can I implement sets or arrays of bits?

1117


What is the difference between union and anonymous union?

1397


Explain the difference between null pointer and void pointer.

1157


What is variable initialization and why is it important?

1391


What is pointers in c with example?

1167


develop algorithms to add polynomials (i) in one variable

2258


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2826


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2737


ATM machine and railway reservation class/object diagram

5335


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

1358