1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
using System; class Program { static void Main() { Console.Write(“Sayı gir:”); int a = int.Parse(Console.ReadLine()); Console.Write(“Sayı gir:”); int b = int.Parse(Console.ReadLine()); int toplam = 0; for (int i = 0; i < b; i++) { toplam = toplam + a; } Console.WriteLine(toplam); } } |