29
1
using System;
2
3
public class Program
4
{
5
public static void Main()
6
{
7
int a = int.Parse(Console.ReadLine());
8
int b = int.Parse(Console.ReadLine());
9
int c = int.Parse(Console.ReadLine());
10
int mayor = 0;
11
12
if(a > b)
13
{
14
if(a > c)
15
mayor = a;
16
else
17
mayor = c;
18
}
19
else
20
{
21
if(b > c)
22
mayor = b;
23
else
24
mayor = c;
25
}
26
27
Console.WriteLine("El mayor es: " + mayor);
28
}
29
}
Cached Result