#include<stdio.h>int main (){int a =100;int b =200;if( a ==100){if( b ==200){printf("Value of a is 100 and b is 200\n");}}printf("Exact value of a is : %d\n", a );printf("Exact value of b is : %d\n", b );return0;}
“21天好习惯”第一期—16if的镶嵌语句#include <stdio.h>int main () { int a = 100; int b = 200; if( a == 100 ) { if( b == 200 ) { printf("Value of a is 100 and b is 200\n" ); } } printf("Exact value of a is : %d\n", a );