You are on page 1of 10

Flow chart

Adding of two given numbers

start

Input number a and number


b

Add a and b

Sum=a+b

Print sum

end
Read two numbers and check whether they are equal or not

start

Input number a
and number b

Read a and b

Is a=b?

False True

Print a is not equal Print a is equal to b


to b

end
Flowchart to read an integer number to determine whether the given number is divisible by 11

start

Input integer a

Read a

Is a%11 & reminder


is zero?

Print a is not Print a is divisible


divisible by 11 by 11

end
Read age of a user to determine whether the user is eligible to vote

start

Input user age

Read user age

Is user age ≥18?

No Yes

Print user is not Print User is eligible


eligible to vote to vote

end
Flowchart to check whether the input number I odd or even

start

Input number a

Read a

Is a an even
number?

Print a is an
Print a is an odd
even number
number

end
start

Input number a

Read a

a is positive

A is negative

Print x is positive
number

X is neither a positive A is a negative


number nor a negative number
number

end
Draw a flowchart to check whether the input number is leap year or not

start

Input year b

Is b% 4&
reminder is zero

Print b is a leap year


Print b is not a
leap year

end
flowchart to find greatest number from three numbers read

start

Input number x,y,z

Read x,y,z

Is x>y
Is y>z Is x>z

Print y is
greatest
number

Print x is greatest
Print z is gratest number
number

end
Draw a flowchart that prompts the user to enter a number between 1 -7 and then
displays the corresponding day of the week

start

Input number n
1-7

sunday friday saturday


monday tuesday wednesday thursday

end
Draw a flow chart to read a number n and find sum from 1 to n

start

Input number n

Read n

Sum=1+2+…n

Print sum equal to


n(n+1)%2

end

You might also like