C Programming Tutorial - If statement with multiple conditions



#include <stdio.h>

int main()
{
    int hoursStudied = 60; //10 or more
    int kidsBeatUp= 0; //0 kidsBeatUp
   
    if((hoursStudied>=10) && (kidsBeatUp==0)){
        printf("You are a good student");
    }

    return 0;
}

Check my video for explanation in my youtube channel.

Comments