Professional Documents
Culture Documents
cs
using System;
namespace askisi_max_4
{
class max
{
public static void Main (string[] args)
{
int a,b,c,d,max;
Console.WriteLine (" .");
a=Convert.ToInt32(Console.ReadLine());
b=Convert.ToInt32(Console.ReadLine());
c=Convert.ToInt32(Console.ReadLine());
d=Convert.ToInt32(Console.ReadLine());
max=a;
if (b>max)
max=b;
if (c>max)
max=c;
if (d>max)
max=d;
Console.WriteLine (" "+max);
Console.ReadKey();
}
}
}
Page 1 of 1