IF CONDITON
- Michael Felix

- Dec 18, 2018
- 1 min read
An if structure is formed from an if statement and is often used to select a single condition. If the selected process is fulfilled or true, then the statements in the if block will be processed and worked on
if(condition)
{
If the condition is true then this section is executed
If the value condition is false then this part is not executed
} Example
#include <stdio.h>
int main(){
float score;
printf("Enter Your Score : ");
scanf("%f", &score);
if(score > 70 && score<=100){
printf("PASS !!\n");
}
else{
printf("NOT PASS !!\n");
}
return 0;
}
Comments