Class 6 Algirithms
Class 6 Algirithms
1. Start
2. Initialize sum = 0 (to store multiples)
3. Initialize count = 1 (to track the number of multiples)
4. Repeat while count ≤ 10
o Add 5 to sum (sum = sum + 5)
5. Print sum
6. End
1. Start
2. Initialize num = 2
3. Repeat while num ≤ 15
Check if num / 2 = 0
o If true, print num
Increment num by 1
4. End
To print the greatest number among the three supplied numbers.
1. Start
2. Input three numbers: A, B, C
3. Compare the numbers using decision boxes:
o If A > B and A > C, then A is the greatest
o Else if B > A and B > C, then B is the greatest
o Else, C is the greatest
4. Print the greatest number
5. End
1. Start
2. Initialize sum = 0
3. Set num = 1
4. Repeat while num ≤ 10:
o Add num to sum → sum = sum + num
o Increment num by 1
5. Print the value of sum
6. End