Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // question 3
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApplication1114
- {
- class Program
- {
- static void Main(string[] args)
- {
- int mispar , chiun , total = 0 ;
- for (int i = 0; i < 31; i++)
- {
- mispar = int.Parse(Console.ReadLine());
- while (mispar != 0)
- {
- chiun = int.Parse(Console.ReadLine());
- if (chiun > total)
- total = chiun;
- mispar = mispar - 1;
- }
- Console.WriteLine(" chiun maximaly = " +total);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement