using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace bt_54
{
class Program
{
static void Main(string[] args)
{
int a, b, c,t1,t2,t3,max;
Console.Write("nhap a="); a = int.Parse(Console.ReadLine());
Console.Write("nhap b="); b = int.Parse(Console.ReadLine());
Console.Write("nhap c="); c = int.Parse(Console.ReadLine());
t1 = a + b; t2 = b + c; t3 = a + c;
max = (t1 > t2 ? t1 : t2) > t3 ? (t1 > t2 ? t1 : t2) : t3;
Console.Write("tong lon nhat la:" + max);
Console.ReadKey();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace bt_54
{
class Program
{
static void Main(string[] args)
{
int a, b, c,t1,t2,t3,max;
Console.Write("nhap a="); a = int.Parse(Console.ReadLine());
Console.Write("nhap b="); b = int.Parse(Console.ReadLine());
Console.Write("nhap c="); c = int.Parse(Console.ReadLine());
t1 = a + b; t2 = b + c; t3 = a + c;
max = (t1 > t2 ? t1 : t2) > t3 ? (t1 > t2 ? t1 : t2) : t3;
Console.Write("tong lon nhat la:" + max);
Console.ReadKey();
}
}
}