Saturday, March 31, 2012

Wap to Print the Reverse of a Number

No comments

*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

Entries RSS Comments RSS

Sample Text

Pages


Copyright © Lovely Codes
Powered by Blogger
Distributed By Free Blogger Templates | Design by N.Design Studio
Blogger Theme by Lasantha - PremiumBloggerTemplates.com