*Print the Reverse of a Number*/
#include<stdio.h> #include<conio.h> void main() { long num,i,sum=0,as; clrscr(); printf("\n Program for Print the Reverse of a Number"); printf("\n Enter A Number ::"); scanf("%ld",&num); printf("\n Reverse number ::"); while(num>0) { as=num%10; sum=sum+as; num=num/10; printf("%ld",as); } printf("\n Want More Need Example for Practice "); printf("\n Logon www.Code2Create.com"); getch(); }
0 comments:
Post a Comment