fork download
  1. #include <stdio.h>
  2. int main () {
  3. int n, s;
  4. if (scanf("%d", &n) == 1){
  5. while (n > 0) {
  6. s = n%10;
  7. n = n/10;
  8.  
  9. printf ("%d", s);
  10.  
  11. }
  12. printf ("n/a");
  13. }
  14. else {
  15. printf ("n/a");
  16. }
  17. }
Success #stdin #stdout 0s 5644KB
stdin
Standard input is empty
stdout
n/a