C Tutorial

C If...Else

Conditional Statements

Use conditions to run different code paths based on logical tests.

if (a > b) printf("greater");
Try it Yourself
Run this C example in your local environment or course sandbox.