Posted by : Waqas Javed Monday, 22 December 2014

#include<stdio.h>
#include<conio.h>

void main(){
int a;
int b;

printf("Enter the number You want to reverse: ");
scanf("%d", &a);

printf("\nNumber you Entered is: ");

b = printf("%d", a);
printf("\nIts reverse is: ");

for (int i = 0; i < b; i++){
printf("%d", a%10);
a /= 10;
}

_getch();
}

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Popular Post

Powered by Blogger.

- Copyright © BSCS -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -