Draw a flowchart to print Series of Numbers divisible by 3:
2178 726 242 81 27 9 3 1
Logic:
- Step 1: Read a starting number which is divisible by 3
- Step 2: Divide current number by 3 to get a next number
- Step 3: Repeat Step 2 until you get a number 1.
Figure: Flowchart to print series of numbers divisible by 3 |
This Raptor flowchart also uses a CEILING function. In Raptor, CEILING returns the lowest integer value greater than or equal to the provided argument.
For example,
- CEILING(15.8) is 16
- CEILING(3.2) is 4
- CEILING(- 4.2) is - 4
You may like to visit following top 10 flowcharts.
- Flowchart to check positive number.
- Flowchart to check negative number.
- Flowchart to check Odd or Even number.
- Flowchart to display Good morning message based on given time.
- Flowchart to print A to Z.
- Flowchart to print 10, 9, ......, 1.
- Flowchart to Add two numbers.
- Flowchart to subtract two numbers.
- Flowchart to print area of square.
- Flowchart to print area of rectangle.
No comments:
Post a Comment