A flow chart is a thought process of what you are gonna make or create.
Let us first understand the basics through an example ->
Ques. Take a car name and output "He is having [car name] car.
Let us get started with symbols used in the flow chart :
start / stop -> oval or circle
Input / output -> parallelogram
Processing -> rectangle
condition -> rhombus
flow direction -> Arrow
EXAMPLE 2: Check if a number is a prime number or not.
Suppose your number = 7 and the numbersyou gonna check whether they are divisible by 7 not are [ 2,3,4,5,6] , now
c = 2
c < num ( 2 < 7) [yes it is smaller than 7]
num % c =0 ( 7 % 2 = 1), so c gets incremented by one number.
c = c + 1 (c = 3)
Again check ( 3 < 7) yes it is smaller .
Now moves to the next ( 7 % 3 =1) , again c gets incremented by one number.
c = c + 1 ( c = 4)
Again check ( 4 < 7)yes it is smaller than 7
Now move to the next step (7 % 4 =1), again c gets incremented by one number ,and it goes like this in the loop until c = 7.
When it checks now (c < num) = ( 7 < 7) it will move out of the loop and prints [ 7 is prime number].