1.flowchart to find the greatest number among the 2 numbers
Algorithm
- 1. Start
- 2. Input 2 variables from user
- 3. Now check the condition If a > b, goto step 4, else goto step
- 4. Print a is greater, goto step
- 5. Print b is greater
- 6. Stop
1.flowchart to check whether the input number is odd or even
Algorithm
- 1. Start
- 2. Put input a
- 3. Now check the condition if a % 2 == 0, goto step 5. Else goto step 4
- 4. Now print(“number is odd”) and goto step 6
- 5. Print(“number is even”)
- 6. Stop
3.flowchart to print the input number 5 times
Algorithm
- 1. Start
- 2. Input number a
- 3. Now initialise c = 1
- 4. Now we check the condition if c <= 5, goto step 5 else, goto step 7.
- 5. Print a
- 6. c = c + 1 and goto step 4
- 7.Stop
4.flowchart to print numbers from 1 to 10
Algorithm
- 1. Start
- 2. Now initialise c = 1
- 3. Now we check the condition if c < 11, then goto step 4 otherwise goto step 6.
- 4. Print c
- 5. c = c + 1 then goto step 3
- 6. Stop
5.flowchart to print the first 5 multiples of 3
Algorithm
- 1. Start
- 2. Now initialise c = 1
- 3. Now check the condition if c < 6, then goto step 4. Otherwise goto step 6
- 4. Print 3 * c
- 5. c += 1. Then goto step 3
- 6. Stop
Resources :