using System; int s1, s2, s3,buyuk,kucuk; Console.Write("Bir sayı girin"); s1 = Convert.ToInt32(Console.ReadLine()); Console.Write("Bir sayı girin"); s2 = Convert.ToInt32(Console.ReadLine()); Console.Write("Bir sayı girin"); s3 = Convert.ToInt32(Console.ReadLine()); if (s1 > s2 && s1 > s3) { buyuk = s1; } else if (s2 > s3) { buyuk = s2; } else { buyuk = s3; } if (s1 < s2 && s1 < s3) { kucuk = s1; } else if (s2 < s3) { kucuk = s2; } else { kucuk = s3; } Console.WriteLine("en büyük ile en küçük toplamı="+(kucuk + buyuk)); Console.ReadLine();
CONSOLE APPLİCATİON
Kullanıcı tarafından girilen üç sayıdan en büyük ile en küçük sayıyı toplayıp toplam sonucu ekrana yazdıran programın kodları
Kaydol:
Kayıt Yorumları (Atom)
SAYFAMIZA ABONE OLARAK YORUMUNUZU YAPABİLİRSİNİZ Show Conversion Code Hide Conversion Code Show Emoticon Hide Emoticon