Hey guys i'm wondering how I would end a program prematurely through an if statement if an invalid number is input.
I thought something like this:
Code:int end=0; if((number[n]>9999999)||(number[n]<-9999999)) { printf("All values must be between 9999999 and -9999999"); return end; }