Tech Study

C# Program to Print Multiplication of Number

Introduction

I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as per your availability..

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
public class csharpExercise
{
    static void Main(string[] args)
    {
 
        int i, num;
 
        //Reading number
        Console.WriteLine("Enter number to print table: ");
        num = Convert.ToInt32(Console.ReadLine());        
 
        for (i = 1; i <= 10; i++)
        {
            //Printing table of number entered by user            
            Console.Write("{0} X {1} = {2} \n", num, i, num * i);            
        }
        Console.ReadLine();
    }
}

Result

Write C# program to print multiplication table of a given number
Write C# program to print multiplication table of a given number

 

Here are some more c# program for your practice:

C# Program To Find Size Of Data Types

C# Program to calculate the total marks, percentage and division of student

TaggedWrite C program to print multiplication table of a given number

Java Final keyword

Introduction : java final keyword The final keyword present in Java programming language is generally used for restricting the user. …

Read more

C++ Memory Management: new and delete

C++ Memory Management We know that arrays store contiguous and the same type of memory blocks, so memory is allocated …

Read more