Advertisement
nahidjamalli

Lesson #11

Apr 12th, 2020
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. int main()
  2. {
  3.     short n, a, b, c, s = 0;
  4.    
  5.     n = short.Parse(Console.ReadLine());
  6.    
  7.     while (n--)
  8.     {
  9.         a = short.Parse(Console.ReadLine());
  10.         b = short.Parse(Console.ReadLine());
  11.         c = short.Parse(Console.ReadLine());
  12.         if (a + b + c > 1) s++;
  13.     }
  14.    
  15.     Console.WriteLine(s);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement