You are on page 1of 2

1)OBTAIN first number for the user.

SET num1 as the user input

OBTAIN second number name it b

SET num2 as the user input

IF num1 is larger then num2 THEN

Print num1

Else

Print num2

ENDIF

Calculate the sum of num1 and num2

Print Sum

2) While (int x<10)

Increment x by one

Print enter your mark

Get the user input

If x <50

Print fail

If x > 50

Print pass

End if

End While

GET user input the dia of the pizza

Set dia as the user input

Set a new variable name it ouput

Compute Print dia*.05 + 1 + .75

Set it to the variable output


Print output

Print

You might also like