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(); cout<<"enter value for marks"; cin>>marks; if((marks==80) || (marks==90)) { cout<<"marks are either 80 or 90"; } getch(); }