Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class CheatSheet
- {
- static void Main(string[] args)
- {
- int rows = int.Parse(Console.ReadLine());
- int columns = int.Parse(Console.ReadLine());
- long verticalStart = long.Parse(Console.ReadLine());
- long horizontalStart = long.Parse(Console.ReadLine());
- for (int i = 0; i < rows; i++)
- {
- string clearWhiteplace = ""; // Махаме празните пространства
- for (int j = 0; j < columns; j++)
- {
- long currentValue = (verticalStart + i) * (horizontalStart + j);
- clearWhiteplace += currentValue + " ";
- }
- Console.WriteLine(clearWhiteplace.Trim()); // Махаме празните пространства
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment