PART A
1.
Fill in the third column in the following tables:
expression1
|
expression2
|
expression1 ||
expression2
|
false
|
false
|
|
false
|
true
|
|
true
|
false
|
|
true
|
true
|
|
expression1
|
expression2
|
expression1 && expression2
|
false
|
false
|
|
false
|
true
|
|
true
|
false
|
|
true
|
true
|
|
PARTB
1.
Write a program to output even
numbers 1 to 20 using three types of loop statement (while, do-while and for)
in three seperate program.
2. Write a program that input ten (10)
integers. Print out the sum of those integers.
2.1 Pseudocode
2.2 Flowchart
2.3 C++ Program
No comments:
Post a Comment