0% found this document useful (0 votes)
2 views

LAB Work 2 Programming

Uploaded by

abdul muqtadir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

LAB Work 2 Programming

Uploaded by

abdul muqtadir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

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.

You might also like