AIFA
C Editor
Coding Lab
C Home
Lesson
Courses
CHAPTER 09
C If Else
Write C code and run it directly in the browser.
▶ Run Code
↻ Reset
Clear Output
C Source Code
#include <stdio.h> int main() { int age = 20; if (age >= 18) { printf("Adult"); } else { printf("Minor"); } return 0; }
Ready
Program Output
Output will appear here...
AIFA C Compiler
← Previous
📖 Lesson
All Chapters
Next →