PSEUDO CODE
INTRO:-
Pseudo code describes a programming in informal way.
➮pseudo code is not an actual programming language.
➮It's does not require any strict pragramming language
syntax.
➮It's summarizes a program's flow.
➮It's use for solve a problem.
LET'S SOLVE THE PROBLEMS
➤Write psesudo code that tells a user that the number
they enterd is not a 5 or 6.
Begin
Get value of x
Process If x = 5? Then Print x
Else If x = 6? Then Print x
Else Print x “ is not equal to 5 or 6”
End If
End If
End
➤Write pseudo code to print all multiples of 5 between
1and100.
Begin
Input x = 1, y = 1
Process While x < 100
x = y*5
y = y+1
Print x
End
INTRO:-
Pseudo code describes a programming in informal way.
➮pseudo code is not an actual programming language.
➮It's does not require any strict pragramming language
syntax.
➮It's summarizes a program's flow.
➮It's use for solve a problem.
LET'S SOLVE THE PROBLEMS
➤Write psesudo code that tells a user that the number
they enterd is not a 5 or 6.
Begin
Get value of x
Process If x = 5? Then Print x
Else If x = 6? Then Print x
Else Print x “ is not equal to 5 or 6”
End If
End If
End
➤Write pseudo code to print all multiples of 5 between
1and100.
Begin
Input x = 1, y = 1
Process While x < 100
x = y*5
y = y+1
Print x
End
No comments:
Post a Comment