Mega Code Archive
Categories
/
C Tutorial
/
Statement
The if statement
If a compound statement is used, it must be enclosed in opening and closing braces. #include
main() { int i=5, j =1; if (i > j){ i = i + 1; printf("%d",i); } else j = j +1; } 6