Loops | SoloLearn: Learn to code for FREE!

+5

Loops

For counter 1 to 0 what is the possible values of the count (all) ?

8/3/2020 9:21:19 AM

Sanjay Kamath

7 Answers

New Answer

+7

This question should be reworked. Please give a more clear description or provide a code snippet. Also include programming language in tags. Thanks!

+5

Petr -1 is the step... return is random ...

+4

Sanjay Kamath step may be not int . For ex step=-0.2, then result will be 1, 0.8, 0.6, 0.4, 0.2

+2

Sanjay Kamath Range(start,stop,step). Start is 1, stop is 0. What is step?

+2

What about C++ 😶

+2

Sanjay Kamath for(float i=1;i>0; i+=-0.2)

+2

Petr I would use a while loop here ....