- Katılım
- 29 Mayıs 2019
- Mesajlar
- 8,562
- Tepkime puanı
- 2
Kod:
[FONT=Courier New][COLOR=Black][SIZE=4]int i,sayi,deger; double toplam=0; Console.WriteLine("kaç sayi gireceksiniz"); deger= Convert.ToInt32(Console.ReadLine()); for (i = 1; i<=deger; i++) { Console.WriteLine(i + ".sayiyi giriniz..."); sayi = Convert.ToInt32(Console.ReadLine()); toplam += sayi; } toplam /= deger; Console.WriteLine("ortalama : " + toplam); Console.ReadKey();
[/SIZE][/COLOR][/FONT]