Advertisement
Omersk

Untitled

Nov 25th, 2015
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.72 KB | None | 0 0
  1. // question 3
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6.  
  7. namespace ConsoleApplication1114
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int mispar , chiun , total = 0 ;
  14.             for (int i = 0; i < 31; i++)
  15.             {
  16.                 mispar = int.Parse(Console.ReadLine());
  17.                 while (mispar != 0)
  18.                 {
  19.                     chiun = int.Parse(Console.ReadLine());
  20.                     if (chiun > total)
  21.                         total = chiun;
  22.                     mispar = mispar - 1;
  23.                 }
  24.                 Console.WriteLine(" chiun maximaly = " +total);
  25.             }
  26.  
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement