Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Download as odt, pdf, or txt
Download as odt, pdf, or txt
You are on page 1of 3

"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();

CODE OF SWAPPING:
using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace ConsoleApplication3

class Program

static void Main(string[] args)

int a = 9, b = 15;

Console.WriteLine("\nValues Before Swap a= {0} ,b = {1} ", a,b );

a = a ^ b;

b = a ^ b;

a = a ^ b;
Console.WriteLine("\nValues After Swap a= {0} ,b = {1} ", a, b);

Console.ReadLine();

You might also like