Lab 1
Lab 1
(Students are to code the following programs in the lab and show the output to
instructor/course coordinator)
Instructions:
Write comment to make your programs readable.
Use descriptive variables in your programs (Name of the variables should show
their purposes)
Programs List:
1. Write a C++ program to display “This is my first C Program”.
2. Write a C++ program to add two numbers (2 and 6) and display its sum.
3. Write a C++program to multiply two numbers (4 and 5) and display its product.
4. Write a C++program to calculate area and circumference of a circle.
5. Write a C++ program to perform addition, subtraction, division and
multiplication of two numbers.