LAB Work 2 Programming
LAB Work 2 Programming
Using a statement in C++ write a complete program that calculates and displays
the sum of two integers (int, short, long) by obtaining the values from the user. Add
comment to the code where appropriate.
2. Using a statement in C++ write a complete program that calculates and displays
the difference of two real numbers (float, double) by obtaining the values from the
user. Add comment to the code where appropriate.
3. Using a statement in C++ write a complete program that calculates and displays
the division of two integers/real numbers by obtaining the values from the user. Add
comment to the code where appropriate.
4. Using a statement in C++ write a complete program that calculates and displays
the remainder of two integers/real numbers by obtaining the values from the user.
Add comment to the code where appropriate.
--
Regards
Dr. SALAH UDDIN
Asst. Professor,
CAE, NUST,
RISALPUR.