while(potatosconeflour <= c1) { potatosconeflour = potatosconeflour + potatosconeflour; } I used a while loop which does not work after inputting the number 24.I am trying to round an int number to another int number. E.g., I want to round any number to a multiple of 8.
E.g: rounding 1 to 8, 13 to 16, 23 to 24