using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace bt_74
{
class Program
{
static void Main(string[] args)
{
int a, b, c, min, t1, t2, t3;
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;
min = (t1 < t2? t1 : t2) < t3 ? (t1 < t2 ? t1 : t2) : t3;
Console.Write("tong nho nhat la:" + min);
Console.ReadKey();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace bt_74
{
class Program
{
static void Main(string[] args)
{
int a, b, c, min, t1, t2, t3;
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;
min = (t1 < t2? t1 : t2) < t3 ? (t1 < t2 ? t1 : t2) : t3;
Console.Write("tong nho nhat la:" + min);
Console.ReadKey();
}
}
}