Back To C Flow of Control Index
//program to demonstrate if-else statement program to demonstrate if or (check whether marks are equal to either 80 or 90 #include
#include
void main() { int marks; clrscr(); printf("enter value for marks"); scanf("%d",&marks); if((marks==80) || (marks==90)) { printf("marks are either 80 or 90"); } getch(); }