DrogbA
Forum Üyesi
- Katılım
- 27 Ara 2020
- Mesajlar
- 3,440
- Tepkime puanı
- 0
- Puanları
- 36
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]