write a program to display reverse of a number using for
loop?
Answer Posted / vinit kumar rai
#include<stdio.h>
#include<conio.h>
void main()
{
long int num,i;
int d;
clrscr();
printf("\n enter number");
scanf("%ld",&n);
printf("\n the reverse of number %ld is ",num);
for(i=0;i>0;i=i\10)
{
d=i%10;
printf("%d",d);
}
getch();
}
| Is This Answer Correct ? | 10 Yes | 13 No |
Post New Answer View All Answers
When is a void pointer used?
Describe wild pointers in c?
In C programming, what command or code can be used to determine if a number of odd or even?
Explain is it better to bitshift a value than to multiply by 2?
Explain setjmp()?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
In which layer of the network datastructure format change is done
What is the sizeof () operator?
How can I swap two values without using a temporary?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
Which are low level languages?
Write a program to check armstrong number in c?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
Write a program to reverse a linked list in c.
What is a protocol in c?