Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
448 B
1
Indexable
Never
namespace p5;
class Program
{
    static void Main(string[] args)
    {
        Console.Write("Enter an integer: ");
        int number = int.Parse(Console.ReadLine());

        Console.WriteLine("$Multiplication table for {number}: ");

        for (int i = 1; i <= 10; i++)
        {
            int result = number * i;
            Console.WriteLine($"{number} * {i} = {result}");
        }

        Console.ReadLine();
    }
}
Leave a Comment