You are on page 1of 5

Block Diagrams

Flow Chart for if


Flow Chart for for loop

Flow Chart for if else

Flow Chart for while loop

Flow Chart for switch

Flow Chart for do while loop

Notes prepared by T. Ratna Reddy, Associate Professor, CBIT Mobile 9985666778 Page 10
Block Diagrams

Flow Chart for break Flow Chart for continue

To find sum of digits of given To find GCD of two numbers


number

Notes prepared by T. Ratna Reddy, Associate Professor, CBIT Mobile 9985666778 Page 11
Block Diagrams

To find nth Fibonacci number To find sum of first n natural


numbers

To find display first n natural To check whether the given


numbers number is prime or not

Notes prepared by T. Ratna Reddy, Associate Professor, CBIT Mobile 9985666778 Page 12
Block Diagrams

To find prime numbers up to n

Notes prepared by T. Ratna Reddy, Associate Professor, CBIT Mobile 9985666778 Page 13
Block Diagrams

Notes prepared by T. Ratna Reddy, Associate Professor, CBIT Mobile 9985666778 Page 14

You might also like