How to elaborate an algorithm that writes the odd numbers between 100 and 200?

Asked

Viewed 1,367 times

-5

I’m stuck on this question I saw in a PDF of programming logic, how can I fix this?

Develop an algorithm that generates and writes the odd numbers of the numbers read between 100 and 200.

  • 5

    If you tried to do something, edit the question and add the code to it, also explain what doesn’t work or what the specific question is.

  • 2

    Hey, Xanda, I edited your question to make it more professional and homework-free. It’s okay to ask simple questions here, but it’s nice that you demonstrate your efforts to find a solution and give more details as you mention rray. For example, you have read "7.2 Repeat Commands"? . . . . . . Searching inside [en.so] is also important, see: https://answall.com/search?q=title%3Aimpar

1 answer

5

You’ll have to make one for between 100 and 200, if the rest of the division by 2 is different from 0, the number is odd.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.