-->
Way of C Learning - CPU(2110003)
Facebook
Jasper Roberts
-
Blog
Pages
Home
CPU Syllabus
CPU Theory
CPU Assignments
CPU Experiments
CPU Tutorials
CPU Papers
CPU Books
About Author
Monday, November 3, 2014
Write a c program to reverse a given integer number.
#include<conio.h>
#include<stdio.h>
void main()
{
int num,i;
clrscr();
printf("Enter the number:");
scanf("%d",&num);
printf("Reverse of %d is = ",num);
while(num != 0)
{
i = num%10;
printf("%d",i);
num = num/10;
}
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment