Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. using System;
  2.  
  3. class Program
  4. {
  5. static void Main(string[] args)
  6. {
  7. int num = int.Parse(Console.ReadLine());
  8. if (num == 1)
  9. {
  10. Console.WriteLine("one");
  11. }
  12. else if(num == 2)
  13. {
  14. Console.WriteLine("two");
  15. }
  16. if (num == 3)
  17. {
  18. Console.WriteLine("three");
  19. }
  20. else if (num == 4)
  21. {
  22. Console.WriteLine("four");
  23. }
  24. if (num == 5)
  25. {
  26. Console.WriteLine("five");
  27. }
  28. else if (num == 6)
  29. {
  30. Console.WriteLine("six");
  31. }
  32. if (num == 7)
  33. {
  34. Console.WriteLine("seven");
  35. }
  36. else if (num == 8)
  37. {
  38. Console.WriteLine("eight");
  39. }
  40. if (num == 9)
  41. {
  42. Console.WriteLine("nine");
  43. }
  44. else if (num == 10)
  45. {
  46. Console.WriteLine("ten");
  47. }
  48. else
  49. {
  50. Console.WriteLine("number too big");
  51. }
  52. }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement