Which way is better?-- Option 1-------------if ( condition1 ){       statement1}else  {     exit program}if ( condition2 ) {       statement2  }else {      exit program }----Option 2------ if ( condition1 ){    statement 1    if ( condition2 )     {         statement2       }    else     {         exit program    }}else{    exit program}
Nested if statements or multiple if statements
conditions