C programming:
The user has to put in 7 independant values which are assigned 7 different variables. Is there a way to check they are all >=0 with less code?
This does work, but I'm curious.
if (y1>=0 && y2>=0 && y3>=0 && y4>=0 && y5>=0 && y6>=0 && y7>=0)