class Program
{
static void Main(string[] args)
{
int temp = 0;
Console.WriteLine("Enter the first number");
int n1 = int.Parse(Console.ReadLine());
Console.WriteLine("Enter the second number");
int n2 = int.Parse(Console.ReadLine());
for (int i = 1; i <= n1; i++)
{
temp = temp + n2;
}
Console.WriteLine("product of two numbers: {0}", temp);
Console.ReadLine();
}
}
No comments:
Post a Comment