I'm writing code that calculates whether or not a triangle is valid based on measurements given by a user. When the measurements are valid, I use printf to print "triangle valid". But it prints forever until I press ctrl C. How do I make it only print once?
stop printf
Collapse
X
Comment