if statements allow your program to make decisions

Types of tests:


  • ==

  • >

  • <

  • >=

  • <=

  • !=




#include <stdio.h>
#include <stdlib.h>

int main()
{
    if(4 < 10){
        printf("Easy hoss");
    }

    if(16 < 10){
        printf("Meatball");
    }

    return 0;
}