fbinnzhivko

Cheat sheets

Mar 12th, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.70 KB | None | 0 0
  1. using System;
  2.  
  3. class Program
  4. {
  5.     static void Main()
  6.     {
  7.  
  8.         long rows = long.Parse(Console.ReadLine());
  9.         long columns = long.Parse(Console.ReadLine());
  10.  
  11.         long rowNumber = long.Parse(Console.ReadLine());
  12.         long colummNumber = long.Parse(Console.ReadLine());
  13.  
  14.  
  15.         for (long row = rowNumber; row < rows + rowNumber; row++)
  16.         {
  17.             for (long col = colummNumber; col < columns + colummNumber; col++)
  18.             {
  19.                 Console.Write(row * col);
  20.                 if (col < colummNumber + columns)
  21.                 {
  22.                     Console.Write(' ');
  23.                 }
  24.             }
  25.             Console.WriteLine();
  26.         }
  27.  
  28.     }
  29. }
Add Comment
Please, Sign In to add comment