0% found this document useful (0 votes)
24 views2 pages

Pseudo Lab 1 CSC

Uploaded by

hey sooha
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)
24 views2 pages

Pseudo Lab 1 CSC

Uploaded by

hey sooha
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/ 2

Lab 1

Pseudocode

Task 1

BEGIN

1. Enter "Hello, welcome to C++ programming!"

2. Enter "Press any key to exit!"

3. SYSTEM CALL " pause "

END

Task 2

Begin

1. read no1, no2


2. get num1 (the first number)
3. get num2 (the second number)
4. calculate the sum of the numbers
sum = no1 + no2
5. Display sum

End

Task 3

Begin

1. Read no1, no2, max


2. get no1 (the first number)
3. get no2 (the second number)
4. if no1 bigger than no2
5. then max = no1
6. else
7. max = no2
8. end if
9. display “The highest value is ”

End
Task 4

Begin

1. read no, cny


2. cnt = 0
3. get a value (no)
4. while cnt is smaller than no
5. display “Hello/n”
6. then cnt= cnt + 1
7. display value

End

You might also like