Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- Console.WriteLine("Kérek egy számot és megszorzom!");
- int a = int.Parse(Console.ReadLine());
- int b = 1;
- Console.WriteLine("Hányszor?");
- int c = int.Parse(Console.ReadLine());
- while (b <= a)
- {
- for (int i = 0; i <c ; i++)
- {
- Console.Write("{0} ", (i + 1) * b);
- }
- Console.WriteLine();
- b++;
- }
- Console.ReadKey();
- }
Add Comment
Please, Sign In to add comment