बिजनेस मार्केटिंग का लो कॉस्ट फंडा , अपने मोबाइल से ऑटो sms भेजकर मार्केटिंग करे विजिट करे http://autotextsms.com/ बिजनेस मार्केटिंग का लो कॉस्ट फंडा http://autotextsms.com/

Search This Blog

Translate

c program reverse of given number

c program to reverse a number using for loop,c program to reverse a number with explanation,c program to reverse a number using recursion,c program to reverse a number and check for palindrome,c program to reverse a number using function,c program to reverse a number using while loop,c program to reverse a number using bitwise operator,c program to reverse a number using stack,




#include"stdio.h"
#include"conio.h"
void main()
{
long no,rem,sum=0;
clrscr();
printf("Enter the number=");
scanf("%ld",&no);
while(no>0)
{
rem=no%10;
sum=(sum*10)+rem;
no=no/10;
}
printf("\n\n The Reverse number is=%ld",sum);
getch();
}


c program to reverse a number using for loop,c program to reverse a number with explanation,c program to reverse a number using recursion,c program to reverse a number and check for palindrome,c program to reverse a number using function,c program to reverse a number using while loop,c program to reverse a number using bitwise operator,c program to reverse a number using stack,

C Program example List