Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 4

University of Duhok

College of Engineering
Faculty of Engineering and Applied
Sciences
Electrical and Computer department
C++ Programming

Experiment Number: LAB 4

Student Name: Barzan Simo. Kh


Date of work: 14/4/2013
Year: 1st Stage

Group: A
Lecturer: Namiq Sultan.
TASK-1-Print your name 10 times as the following:
1-Barzan simo
2-Barzan simo
-----------------
-----------------
-----------------
10-Barzan simo
TASK-2-repeat task -1- skipping every third line.

Quiz: find the result of the sequence:


1+ ½ + 1/3 + ¼ + 1/5………………………1/100.
POST-LAB:
Write a program to draw the following shape when the height and the width
of the shape are n stars, where n is read from key board.
*
**
***
****
*****

You might also like