Friday 21 October 2011

IF

Hello all , now i will tell you all about IF.
IF is a function that we use for choose the statment. IF is very easy to study just like study about mathematics.
let's begin.
we can use IF like this :

IF Condition Then Begin
Statement1 ;
Statement2 ;
end
else begin
statement1 ;
statement2 ;
end ;

if the statement only one , we don't need the begin and end;
but the important is before the else we don't use the semicolon(Titik koma).
for the flow diagram we can see at this picture :


this is a example of program that use IF :



I think , only that i can tell you for now , we meet again at the next post , Thank you ...

No comments:

Post a Comment