The IF Selection Statement

Tuesday, April 28, 2009 · Posted in

As we all know that selection structures are used to choose among alternative courses of action. For example, suppose there is a grade of 90 on an exam and you have to perform a condition about this in pseudo code.

Pseudo code:

1.) “If student’s grade is greater than or equal to 90”

2.) Print “Excellent”

In this Pseudo code, it determines if the condition “If student’s grade is greater than or equal to 90”, is true or false. In the first line the program determines if the statement met the condition and if the condition returns true and then the program will execute the next line which is the number 2, and it will print the word excellent.

Powered by Blogger.