Showing Page:
1/3
LAB NO#03 TASK OBSERVATIONS:
Startup1:
When we type the given program in the IDE the output of the program is given
below:
True is 1
False is 0
Startup2:
When we type the given program in editor the output of program is given below:
X is 5 and Y is 10
By applying semicolon(;) at the end of the if statement and compile the output of
the program is :
X is 5 and Y is 10
X is greater than y
Startup3:
When we type the given program in IDE it work properly without any error and
ask number as input from us and declare it even or odd.
TASK No#01:
Program work properly without any error or warning according to given
statement.
TASK No#02:
Showing Page:
2/3
Program work properly without any error or warning according to given
statement.
TASK No#3:
Program work properly without any error or warning according to given
statement.
TASK No#4:
Program work properly without any error or warning according to given
statement.
TASK No#5:
[Error] expected’;’ before string constant
By putting << in cout Program work properly without any error or warning
according to given statement.
TASK No#6:
Program work properly without any error or warning according to given
statement.
TASK No#7:
By correction of spelling Program work properly without any error or warning
according to given statement.
TASK No#8:
Program work properly without any error or warning according to given
statement.
TASK No#09:
Program work properly without any error or warning according to given
statement.
TASK No#10:
Showing Page:
3/3
Program work properly without any error or warning according to given
statement.
TASK No#11:
Program work properly without any error or warning according to given
statement.
TASK No#12:
Program work properly without any error or warning according to given
statement.
TASK No#13:
Program work properly without any error or warning according to given
statement.
PREPARED BY: MOHSIN AWAN (E-1)

Unformatted Attachment Preview

Name: Description: ...
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4