Guest User

Untitled

a guest
Jan 4th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1.         {
  2.             Console.WriteLine("Kérek egy számot és megszorzom!");
  3.             int a = int.Parse(Console.ReadLine());
  4.             int b = 1;
  5.             Console.WriteLine("Hányszor?");
  6.             int c = int.Parse(Console.ReadLine());
  7.             while (b <= a)
  8.             {
  9.                 for (int i = 0; i <c ; i++)
  10.                 {
  11.                     Console.Write("{0} ", (i + 1) * b);
  12.                 }
  13.                 Console.WriteLine();
  14.                 b++;
  15.             }
  16.             Console.ReadKey();
  17.         }
Add Comment
Please, Sign In to add comment