kirililchev3

Multiplication table - While loop

May 17th, 2018
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 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 = 1;
  9.         while (times <=10)
  10.         {
  11.             Console.WriteLine($"{num} X {times} = {num*times}");
  12.             times++;
  13.         }
  14.        
  15.        
  16.  
  17.         }
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment