Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Lab Assignment 1

Note:

1. Introduce Dev C++ IDE, how to open, save, create new file, compile and
run the program.

2. Explain the process of compilation.

3. Introduce headerfiles, main(), body of the program, return statement to


students with the following programs.
1. Write a program (WAP) to display "Hello World" on console display.

2. WAP to input an integer and display it.

3. WAP to input a decimal number and display it.

4. WAP to input a character and display it.

5. WAP to add, subtract and multiply numbers. [ Note: Avoid Divide operation, we will do it in

next lab after type casting]

6. WAP to calculate gross salary of a person, where gross_salary=basic+da+ta and da is

10% of basic and ta is 12% of basic.

You might also like