VelizarAvramov

09. Multiplication Table

Jul 17th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1. You will receive an integer as an input from the console. Print the 10 times table for this integer. See the examples below for more information.
  2. using System;
  3.  
  4. namespace _09._Multiplication_Table
  5. {
  6.     class MultiplicationTable
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             int input = int.Parse(Console.ReadLine());
  11.  
  12.             for (int i = 1; i <= 10; i++)
  13.             {
  14.                 Console.WriteLine($"{input} X {i} = {i * input}");
  15.             }
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment