Advertisement
1804

Untitled

Jan 25th, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.78 KB | None | 0 0
  1.             Console.Write("Podaj %: ");
  2.             int a = Convert.ToInt32(Console.ReadLine());
  3.             if (a >= 100)
  4.                 Console.WriteLine("Dostajesz 6.");
  5.             else
  6.                 if (a >= 90)
  7.                     Console.WriteLine("Dostajesz 5.");
  8.                 else
  9.                     if (a >= 75)
  10.                         Console.WriteLine("Dostajesz 4.");
  11.                     else
  12.                         if (a >= 60)
  13.                             Console.WriteLine("Dostajesz 3.");
  14.                         else
  15.                             if (a >= 50)
  16.                                 Console.WriteLine("Dostajesz 2.");
  17.                             else
  18.                                 Console.WriteLine("Dostajesz 1.");
  19.             Console.ReadLine();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement