Facebook
From Petar Dobrev, 3 Years ago, written in C#.
Embed
Download Paste or View Raw
Hits: 43
  1. class Program
  2.         {      
  3.                 static string funkciq(int x)
  4.                 {
  5.                         if (x==0) return "zero";
  6.                         if (x==1) return "one";
  7.                         if (x==2) return "two";
  8.                         if (x==3) return "three";
  9.                         if (x==4) return "four";
  10.                         if (x==5) return "five";
  11.                         if (x==6) return "six";
  12.                         if (x==7) return "seven";
  13.                         if (x==8) return "eight";
  14.                         if (x==9) return "nine";
  15.                         return "";
  16.                 }
  17.  
  18.                 public static void Main(string[] args)
  19.                 {
  20.                        
  21.                         int n = int.Parse(Console.ReadLine());
  22.                         Console.WriteLine(funkciq (n%10));
  23.                        
  24.                        
  25.                         Console.Write("Press any key to continue . . . ");
  26.                         Console.ReadKey(true);
  27.                 }
  28.         }