cp-1_lect_17 - More Examples on Algo and Flowcharts...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
More Examples on Algo and Flowcharts Continued… Draw a flowchart for finding largest of three numbers Draw a flowchart to read marks of 10 students and classify them into different grades Algo for checking whether a given number is prime 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, … Algo for printing Fibonacci series 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, … Algo for finding whether a given number is an Armstrong number 371, 153, 407, . .. Draw a flowchart for finding roots of a quadratic equation Draw a flowchart to print sum of even terms within 0 to 20 Algo for finding sum of series 1 + x + (x2 )/2! + x3 /3! +…
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Draw a flowchart for computing factorial N (N!)
Background image of page 2
Draw a flowchart to find the sum of first 50 natural
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Draw a flowchart to find the largest of three numbers
Background image of page 4
Draw a flowchart for computing factorial N (N!)
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Algorithm: Prime number 1. Input a number n. 2.
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 9

cp-1_lect_17 - More Examples on Algo and Flowcharts...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online