Vous êtes sur la page 1sur 3

Flow Charts in Mathematics

Type A 1 Display a message, “My first effort”.


2 Input two numbers and display their sum.
3 Input principal, rate and time, display compound interest.
4 Input principal, rate and time, display simple interest.
5 Input radius of circle, display its area and circumference.
6 Input side of square, display its area and parameter.
7 Input sides of a triangle, display its area Heron’s formula.
8 Display larger of two numbers without decision.
9 Display smaller of two numbers without decision.

Type B 1 Input two numbers, display larger of them.


2 Input three numbers, display smallest of them.
3 Input three numbers, display largest of them.
4 Input three numbers, display middle of them.
5 Display absolute value of the input number, without function.
6 Enter coefficients of quadratic equation display its roots.
7 Input a four digit year, check whether it is leap or not.
8 Enter coefficients of two linear equations. Check whether
these are parallel, coincident or intersecting.
9 Check where input number is even or odd.

Type C 1 Display natural numbers up to given number n.


2 Display natural numbers between two given numbers a and b.
3 Display first n natural numbers that are divisible by given m.
4 Display natural numbers up to n that are divisible by given m.
5 Display natural numbers between a and b that are divisible by
given m.
6 Count the numbers between a and b that are divisible by n.
7 Display n terms of Fibonacci Series. Each term is the sum of
its two preceding terms, 1, 1, 2, 3, 5, 8, 13, …
8 Display sum of first n natural numbers without using the
direct formula.
9 Input n numbers manually and display their sum.
10 Input n numbers and display largest of them.
11 Input n numbers and display smallest of them.
12 Display factors of a given number. (including 1 and number itself)
13 Display common factors of two given numbers a and b.
14 Display highest of the common factors of the two given numbers.
15 Display first 5 multiples of a given number a.
16 Display first 5 common multiples of given numbers a and b.
17 Display least or first common multiple of two given numbers.
18 Display sum of first n even natural numbers.
19 Display sum of even numbers up to n.
20 Display sum of even numbers between a and b.

Type D 1 Display unit digit of the entered number.


2 Display tens digit of the entered number.
3 Count number of digits of given number.
4 Display sum of digits of the given number.
5 Enter a number and display the number with digits in reverse order.
6 Check whether a number is prime or not.
7 Display first n prime numbers.
8 Display prime numbers up to n.
9 Display prime numbers between two given numbers a and b.
10 Count the number of primes between a and b.
11 Convert a decimal number to binary number.
12 Convert a binary number to decimal number.
13 Display the following series
1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5….

Vous aimerez peut-être aussi