0% found this document useful (0 votes)
19 views

Using Using Using Using Using Namespace Class Staticvoid String Int

The document contains code that prompts the user to input a starting and ending number. It then uses a series of for loops to print out the results of multiplying each number from the starting to ending number by 1 through 10. This allows the user to see tables for multiplication up to 10.

Uploaded by

trooool
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Using Using Using Using Using Namespace Class Staticvoid String Int

The document contains code that prompts the user to input a starting and ending number. It then uses a series of for loops to print out the results of multiplying each number from the starting to ending number by 1 through 10. This allows the user to see tables for multiplication up to 10.

Uploaded by

trooool
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

using System;

usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespace HW3
{
classProgram
{
staticvoid Main(string[] args)
{
intstartno , endno , i;
Console.WriteLine("Enter the Starting No");
startno = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter the Ending No");
endno = Convert.ToInt32(Console.ReadLine());

for (i = startno; i<= endno; i++)


{
Console.Write("{0} ", i * 1);
} Console.WriteLine("\n");
for (i = startno; i<= endno; i++)
{
Console.Write("{0} ", i * 2);
} Console.WriteLine("\n");
for (i = startno; i<= endno; i++)
{
Console.Write("{0} ", i * 3);
} Console.WriteLine("\n");
for (i = startno; i<= endno; i++)
{
Console.Write("{0} ", i * 4);
} Console.WriteLine("\n");
for (i = startno; i<= endno; i++)
{
Console.Write("{0} ", i * 5);
} Console.WriteLine("\n");
for (i = startno; i<= endno; i++)
{

Console.Write("{0} ", i * 6);


} Console.WriteLine("\n");
for (i = startno; i<= endno; i++)
{
Console.Write("{0} ", i * 7);
} Console.WriteLine("\n");
for (i = startno; i<= endno; i++)
{
Console.Write("{0} ", i * 8);
} Console.WriteLine("\n");
for (i = startno; i<= endno; i++)
{
Console.Write("{0} ", i * 9);
} Console.WriteLine("\n");
for (i = startno; i<= endno; i++)
{
Console.Write("{0} ", i * 10);
}

Console.ReadLine();
}
}
}

You might also like