Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- { // This programm only reverse the numbers
- int num,rem,i,count;
- printf("Enter the number of digits in the number you want to revere :");
- scanf("%i",&count);
- printf("Enter the number :");
- scanf("%i",&num);
- rem=num;
- for(i=1;i<=count;i++)
- {
- num=rem%10;
- rem/=10;
- printf("%i",num);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement