Advertisement
minnera

#30daysofcode #day5

Oct 2nd, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1. //https://www.hackerrank.com/challenges/30-loops/
  2.  
  3. using System;
  4. using System.Collections.Generic;
  5. using System.IO;
  6. using System.Linq;
  7. class Solution {
  8.  
  9.     static void Main(String[] args) {
  10.         int n = Convert.ToInt32(Console.ReadLine());
  11.         for(int i = 1; i < 11; i++){
  12.             Console.WriteLine(n + " x " + i + " = " + (n*i));
  13.         }
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement