Professional Documents
Culture Documents
LOGFOR Y115
START
INTEGERS NUM, X, Y
X=1
NO
IS X<=NUM STOP
YES
Y=X- 1
NO
PRINT *
PRINT a new line
ADD 1 TO X
Example – This flowchart will print a diagonal line of asterisks from top right to bottom left.
HOLY ANGEL UNIVERSITY
COLLEGE OF INFORMATION AND COMMUNICATIONS TECHNOLOGY
LOGFOR Y115
START
INTEGER
SUM, N
SUM = 0
N= 0
N= N+ 1
SUM = SUM + N
NO
IS N = 50?
YES
PRINT THE
VALUE OF
SUM
STOP
Example – This flowchart will print the sum of the first 50 natural numbers.
HOLY ANGEL UNIVERSITY
COLLEGE OF INFORMATION AND COMMUNICATIONS TECHNOLOGY
LOGFOR Y115
Example – This flowchart will print the sum of the first 25 odd numbers.
HOLY ANGEL UNIVERSITY
COLLEGE OF INFORMATION AND COMMUNICATIONS TECHNOLOGY
LOGFOR Y115
HOLY ANGEL UNIVERSITY
COLLEGE OF INFORMATION AND COMMUNICATIONS TECHNOLOGY
LOGFOR Y115
HOLY ANGEL UNIVERSITY
COLLEGE OF INFORMATION AND COMMUNICATIONS TECHNOLOGY
LOGFOR Y115
HOLY ANGEL UNIVERSITY
COLLEGE OF INFORMATION AND COMMUNICATIONS TECHNOLOGY
LOGFOR Y115