Advertisement
NadyaMisheva

math.max 4 (числа)

Nov 1st, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1. using System;
  2.                    
  3. public class Program
  4. {
  5.     public static void Main()
  6.     {
  7.      int mun1 = int.Parse(Console.ReadLine());
  8.     int mun2 = int.Parse(Console.ReadLine());
  9.     int mun3 = int.Parse(Console.ReadLine());
  10.         int mun4 = int.Parse(Console.ReadLine());
  11.         int max = Math.Max((Math.Max(mun1, mun2)),(Math.Max(mun3, mun4)));
  12.         Console.WriteLine(max);
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement