Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. static int z;
  2. static void print(int x)
  3. {
  4. if (x != 0) print(x / 10);
  5. else return;
  6. z = x % 10;
  7. Console.Write(z);
  8. }
  9. static void Main(string[] args)
  10. {
  11. int x;
  12. x = int.Parse(Console.ReadLine());
  13. Console.WriteLine();
  14. print(x);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement