Klavyeden girilen 3 sayının toplamını ekrana yazdıran program


static void Main(string[] args)
{
 
int x ;
int y ;
int z ;
 
Console.Write("1.sayıyı Giriniz");
x = Convert.ToInt32(Console.ReadLine());
 
Console.Write("2.sayıyı Giriniz");
y = Convert.ToInt32(Console.ReadLine());
 
Console.Write("3.sayıyı Giriniz");
z = Convert.ToInt32(Console.ReadLine());
 
Console.Write("\n \tGirilen 3 Sayının Toplamı={0}",x+y+z);
 
Console.ReadKey();
}


ÖNCEKİ YAYIN
« Prev Post
SONRAKİ YAYIN
Next Post »

SAYFAMIZA ABONE OLARAK YORUMUNUZU YAPABİLİRSİNİZ Show Conversion Code Hide Conversion Code Show Emoticon Hide Emoticon

Thanks for your comment