Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2016
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. using System;
  2.  
  3. class Program
  4. {
  5. static void Main()
  6. {
  7. long a = long.Parse(Console.ReadLine());
  8.  
  9. string[] names = { "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine" };
  10.  
  11. Console.WriteLine(names[Math.Abs(a % 10)]);
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement