0% found this document useful (0 votes)
20 views2 pages

Assignment by Fasih Dawood ROLL # 1612118: "Code of Tables"

The document contains C# code for a program that prints multiplication tables from 2 to 5. The code uses a for loop to print the multiplication of the table number and integers from 1 to 10, increments the table number after each set, and breaks once the table number exceeds 5.

Uploaded by

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

Assignment by Fasih Dawood ROLL # 1612118: "Code of Tables"

The document contains C# code for a program that prints multiplication tables from 2 to 5. The code uses a for loop to print the multiplication of the table number and integers from 1 to 10, increments the table number after each set, and breaks once the table number exceeds 5.

Uploaded by

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

ASSIGNMENT BY FASIH DAWOOD

ROLL # 1612118

"CODE OF TABLES"

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace ConsoleApplication1

class Program

static void Main(string[] args)

int table = 2;

int c = 6;

for(int i = 1 ; i <=10 ; i++)

Console.WriteLine("{0} x {1} = {2}", table, i, table * i);

if (i == 10) {

table++;
i = 0;

if(table==c){

break;

Console.ReadLine();

You might also like