Pseudocode and Flowchart – Send to output all numbers from 1 to n (read n from input) dividing with 3 or 5

Configurare noua (How To)

Situatie

Solutie

Start

i=1;

Var n;

Read n;

While i<=n

If (i%3==0) OR (i%5==0) then

Show i;

End if

i=i+1

End while;

End

Tip solutie

Permanent

Voteaza

(37 din 72 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?