Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int rows = int.Parse(Console.ReadLine());
- int cols = int.Parse(Console.ReadLine());
- long vNumber = int.Parse(Console.ReadLine());
- long hNumber = int.Parse(Console.ReadLine());
- for (long row = vNumber; row < vNumber + rows; row++)// da natrupva s gornoto
- {
- for (long col = hNumber; col < hNumber + cols; col++)
- {
- Console.Write(row * col + " ");
- // if (col < hNumber + cols - 1)
- // {
- // Console.Write(' ');
- // }
- }
- Console.WriteLine();
- }
- }
- }
- }
- 2 RESHENIE ///////////////////////////////////////////////////////////////////////////////////////
- int rows = int.Parse(Console.ReadLine());
- int columns = int.Parse(Console.ReadLine());
- long verticalStart = int.Parse(Console.ReadLine());
- long horizontalStart = int.Parse(Console.ReadLine());
- for (int i = 0; i < rows; i++)
- {
- for( int j = 0; j < columns; j++)
- {
- long currentValue = (verticalStart + i)*(horizontalStart + j);
- Console.Write(currentValue + " ");
- }
- Console.Writeline();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement