Advertisement
bacco

Multiplication Table 2.0

May 18th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _10_Multiplication_Table_2._0
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             var theInteger = int.Parse(Console.ReadLine());
  10.             var times = int.Parse(Console.ReadLine());
  11.  
  12.             for (int i = 1; i <= 10; i++)
  13.             {
  14.                 Console.WriteLine($"{theInteger} X {times} = {theInteger * times}");
  15.  
  16.                 times++;
  17.  
  18.                 if (times > 10)
  19.                                return;
  20.             }
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement