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
How do you initialize pointer variables?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
What is the ANSI C Standard?
What are the different file extensions involved when programming in C?
Why do we use c for the speed of light?
write a c program to find the sum of five entered numbers using an array named number
How to write c functions that modify head pointer of a linked list?
write a program to rearrange the array such way that all even elements should come first and next come odd
Explain the bubble sort algorithm.
What is a program flowchart?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
What is a file descriptor in c?
How can I find the modification date and time of a file?
What is c system32 taskhostw exe?