INPUT:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TABLE_PRINT
{
class Program
{
static void Main(string[] args)
{
int num,range;
Console.WriteLine("Write
the table num");
num = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("enter
the range of your table");
range = Convert.ToInt32(Console.ReadLine());
for (int i = 1; i
<= range; i++)
{
Console.WriteLine("{0}*{1}={2}", num, i, i * num);
}
}
}
}
No comments:
Post a Comment