kirililchev3

Multiplication table 2 - do while

May 17th, 2018
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1. using System;
  2.  
  3.     class Program
  4.     {
  5.     private static void Main()
  6.     {
  7.         int num = int.Parse(Console.ReadLine());
  8.         int times = int.Parse(Console.ReadLine());
  9.         do
  10.         {
  11.             Console.WriteLine($"{num} X {times} = {num * times}");
  12.             times++;
  13.         }
  14.         while (times <= 10);
  15.  
  16.        
  17.  
  18.         }
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment