how do you write OR in if condition at c code example
Example 1: syntax of if stmt
if (condition)
{
//Block of C statements here
//These statements will only execute if the condition is true
}
Example 2: if statement in c
#include <studio.h>
int main()
{
if (logic goes here)
{
CODE
}
else if (logic)
{
CODE
}
else{
CODE
}
return 0
}