Home Work (20-02-2013)

Post date: Feb 20, 2013 8:46:18 AM

HW1. Write a c++ program to print pluses like follows :

+

++

+++

++++

+++++

++++++

+++++++

++++++++

and put result on a file.

HW2. Write a c++ program to print the following series and put result on a file:

2 4 16 256 65536 4294967296

HW3. Write a c++ program that calculates the multiplication table for 1 to 10.

1 * 1 = 1 ... 10 * 1 = 10

1 * 2 = 2 ... 10 * 2 = 20

1 * 3 = 3 ... 10 * 3 = 30

1 * 4 = 4 ... 10 * 4 = 40

1 * 5 = 5 ... 10 * 5 = 50

1 * 6 = 6 ... 10 * 6 = 60

1 * 7 = 7 ... 10 * 7 = 70

1 * 8 = 8 ... 10 * 8 = 80

1 * 9 = 9 ... 10 * 9 = 90

1 * 10 = 10 ... 10 * 10 = 100

and put result on a file.