Uploaded by 95761e377160

sheet 1

advertisement
SINAI UNIVERSITY
FACULTY OF ENGINEERING
Exercises (1)
1. Produce the following two lines of output:
PROGRAMMING IN C++
IS FUN
using
(a) two insertion operators
(b) one insertion operator
2. What will the following program prints on the screen?
3. Find the error:a)
b)
4. Write a program that reads two integer values representing the
length and width of a rectangle, and computes and prints the
perimeter and the area of the rectangle.
5.
6.
7.
8.
Download