#include <stdio.h>
int main()
{
int number, right_digit;
printf("Enter your number .\n");
scanf("%i", &number);
int negative = number < 0;
if(negative)
number = -number;
do {
right_digit = number % 10;
printf("%i", right_digit);
number = number / 10;
} while (number != 0 );
if(negative)
printf("-");
printf("\n");
getchar(); //keeping the output window open
return 0;
}