Hello ! I am new to C++ and I currently have a project that needs to calculate a number. My program needs to add and subtract numbers but reset it's counting when it reaches to a certain number. for example I would like to add 20 and 8 but my program resets it's counting when it reaches to 24 so it means that when the number exceed to 24 the program will continue to compute but continue it on 0. so the answer will be 20 + 8 = 4
well that code doesn't help me tho. but thanks anyway :D
this is my current program. the problem still occurs to me and i don't know what to do to stop it from exceeding to 24 :(