Advertisement
martinvalchev

Multiplication_Table

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