MuffinMonster

Class Task 25#

Oct 28th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace ConsoleApplication3
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             int total, num;
  13.             bool yes = true;
  14.             total = int.Parse(Console.ReadLine());
  15.             for (; total > 0; total--)
  16.             {
  17.                 num = int.Parse(Console.ReadLine());
  18.                 if (num % 4 != 0) yes = false;
  19.             }
  20.             if (yes == true) Console.WriteLine("Truth!");
  21.             else Console.WriteLine("TROLLER!");
  22.             Console.ReadLine();
  23.         }
  24.     }
  25. }
Add Comment
Please, Sign In to add comment