- Katılım
- 29 Mayıs 2019
- Mesajlar
- 8,562
- Tepkime puanı
- 2
Kod:
[FONT=Courier New][COLOR=Black][SIZE=4]int toplam=0,a,b; Console.WriteLine("bir sayi girin"); a = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("bir sayi girin"); b = Convert.ToInt32(Console.ReadLine()); for (int i = a; i <= b; i++) { toplam += i; } Console.WriteLine("Toplam : {0}", toplam); Console.ReadKey();[/SIZE][/COLOR][/FONT]