Professional Documents
Culture Documents
Air University
Lab Midterm Examination: Spring 2022
INSTRUCTIONS:
- This is a CLOSED BOOK/ CLOSED NOTES examination and the use of C++ compiler on mobile
phone or computer is not allowed during the exam.
- Write codes on the backside of the question paper. 1 question on each page.
- In Q#4, do not write anything else other than the final outputs in the specified boxes, marks will be
deducted otherwise. You can use extra pages for rough work.
Question # 01: Marks: 10 (CLO-1)
Write a program that inputs 2 numbers, swaps these values without using a third variable, and
displays them.
EXAMPLE OUTPUT:
# CODES OUTPUTS
# CODES OUTPUTS