Computer Science, asked by arpitkukrety123, 1 year ago

Write a program to input a three digit number and print its reverse

Answers

Answered by nandan1012002
2
#include <stdio.h>

main()
{
int one, two, three;

printf("Enter a three-digit number: ");
scanf("%.1d%.1d%.1d", &one, &two, &three);

printf("The reversal is: %d%d%d", three, two, one); 
return 0;
}
Similar questions