Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp8
- {
- class Program
- {
- static void Main(string[] args)
- {
- int num = int.Parse(Console.ReadLine());
- int stopNum = int.Parse(Console.ReadLine());
- if (stopNum > 10)
- {
- Console.WriteLine("{0} X {1} = {2}", num, stopNum, num * stopNum);
- } else if (stopNum >=1 && stopNum <= 10)
- {
- for (int i = stopNum; i <= 10; i++)
- {
- Console.WriteLine("{0} X {1} = {2}", num, i, num * i);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment