/*
compiler- Turbo c++ author- Mangilal Sharma =================================*/
#include <conio.h>
#include <stdio.h>
void main()
{
clrscr();
int sum=0,num,a,n;
printf("Enter No. in range of int (less than 32768): ");
scanf("%d",&num);
printf("Reverse of '%d' is: ",num);
while(num>0)
{
a=num%10;
sum=sum+a;
printf("%d",a);
num=num/10;
}
getch();
}
#include <stdio.h>
void main()
{
clrscr();
int sum=0,num,a,n;
printf("Enter No. in range of int (less than 32768): ");
scanf("%d",&num);
printf("Reverse of '%d' is: ",num);
while(num>0)
{
a=num%10;
sum=sum+a;
printf("%d",a);
num=num/10;
}
getch();
}
/*=============================19Nov.,2010=============================*/
nice article for beginners.thank you.
ReplyDeletec tutorial
java tutorial