121k views
5 votes
Algorithm of the odd number between 10 to 50

User Iyabo
by
7.8k points

1 Answer

4 votes

Answer:

Step-by-step explanation:

The algorithm to find all odd numbers between 10 and 50 is as follows:

1. Start by setting the variable `i` equal to 11.

2. While `i` is less than or equal to 49, do the following:

- Print the value of `i`.

- Add 2 to `i`.

3. End the loop.

This algorithm will print all odd numbers between 10 and 50, inclusive .

I hope this helps! Let me know if you have any other questions.

User Peter Quan
by
8.3k points

No related questions found