0
what are the problems in this code
https://www.sololearn.com/compiler-playground/cukwfW0di75A this is my code i want it to print out all the numbers between 1 to 255 but this program stops in the first itteration
3 Answers
+ 5
https://code.sololearn.com/cukwfW0di75A
your code does not stop at the first iteration
https://code.sololearn.com/ctBjGNi87scA/?ref=app
+ 1
If your only aim is to print every number, you're overcomplicating the code.
Use a for loop from 1 to 255 included and use 'cout' to print each in the body of the loop.
But my guess is that that is not what you really want, so maybe try explaining further if possible.
0
you are right I just understood that I was missing the division