using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class
Program
{
static
void Main(string[]
args)
{
Console.WriteLine("Enter a value");
int
a = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Enter limit");
int
limit = Convert.ToInt16(Console.ReadLine());
int
i = 0;
while
(i < limit)
{
Console.WriteLine((a*i).ToString());
i++;
}
Console.WriteLine("end");
Console.ReadLine();
}
}
}
No comments:
Post a Comment