Friday, July 19, 2013

C# Code to generate table froms 01 - 10

C# Code to generate table froms 01 - 10 using Microsoft Visual Studio
------------------------------------------------------------------------------------------------


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace Table4{

class Program
{
static void Main(string[] args)
{

int prod = 0;
for (int row = 1; row <= 10; row++){

for (int col = 1; col <= 10; col++){
prod = row * col;

Console.Write(prod+"\t");}

Console.WriteLine();}

Console.WriteLine();}
}
}

.... You will get results like


No comments:

Post a Comment