C NOT ! logical operator tutorial example explained
#C #NOT #!
// logical operators = ! (NOT) reverses the state of a condition
bool sunny = false;
bool subscribed = true;
if(!sunny){
printf("\nIt's cloudy outside!");
}
else{
printf("\nIt's sunny outside!");
}
return 0;
#C #NOT #!
// logical operators = ! (NOT) reverses the state of a condition
bool sunny = false;
bool subscribed = true;
if(!sunny){
printf("\nIt's cloudy outside!");
}
else{
printf("\nIt's sunny outside!");
}
return 0;

Be the first to comment