VelizarAvramov

11. Multiplication Table 2.0

Dec 16th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _11._Multiplication_Table_2._0
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int number = int.Parse(Console.ReadLine());
  10.             int times = int.Parse(Console.ReadLine());
  11.  
  12.             do
  13.             {
  14.                 Console.WriteLine($"{number} X {times} = {number * times}");
  15.                 times++;
  16.             }
  17.             while (times <= 10);
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment