0

Please how do you do nested if statements

c programming

6th Aug 2018, 3:29 AM
Antonello
3 ответов
+ 1
if (true) { if (true) { //do something } }
6th Aug 2018, 3:41 AM
Jordan Chapman
Jordan Chapman - avatar
+ 1
int age = 18; if(age > 12){ printf("Hey there kid\n") if(age >= 18) printf("Sorry you're not a kid"); } //just an useless example. //useless but works
6th Aug 2018, 3:43 AM
Akib
Akib - avatar
0
thank you
7th Aug 2018, 12:06 AM
Antonello