0% found this document useful (0 votes)
8 views1 page

Class 6 Algirithms

The document outlines four different programming tasks: printing the first 10 multiples of 5, printing numbers divisible by 2 from 2 to 15, finding the greatest among three supplied numbers, and computing the sum of the first 10 natural numbers. Each task includes a step-by-step algorithm with initialization, loops, and conditions. The instructions emphasize structured programming logic for each task.

Uploaded by

shristibk5d
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

Class 6 Algirithms

The document outlines four different programming tasks: printing the first 10 multiples of 5, printing numbers divisible by 2 from 2 to 15, finding the greatest among three supplied numbers, and computing the sum of the first 10 natural numbers. Each task includes a step-by-step algorithm with initialization, loops, and conditions. The instructions emphasize structured programming logic for each task.

Uploaded by

shristibk5d
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

To print the first 10 multiple of 5.

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

To print the numbers divisible by 2 from 2 to 15.

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

To Compute the Sum of the First 10 Natural Numbers

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

You might also like