Solution to Write pseudo code for the problem of printing odd numbers less than a given number … - Sikademy
Author Image

Archangel Macsika

Write pseudo code for the problem of printing odd numbers less than a given number it should also calculate their sum and count

The Answer to the Question
is below this banner.

Can't find a solution anywhere?

NEED A FAST ANSWER TO ANY QUESTION OR ASSIGNMENT?

Get the Answers Now!

You will get a detailed answer to your question or assignment in the shortest time possible.

Here's the Solution to this Question

Input the limiting number, say Num

Initialize Count = 0   and Sum = 0

For n=0 to N

If n % 2 == 1 : Check for ODD number

Then

Sum = Sum + n and Count = Count +1

End the For loop

Display the Count and Sum

Related Answers

Was this answer helpful?

Join our Community to stay in the know

Get updates for similar and other helpful Answers

Question ID: mtid-3-stid-44-sqid-1014-qpid-11