Back To C++ Flow of Control Index
//program to demonstrate if-else statement and (check whether marks are between 80 and 90) #include
#include
void main() { int marks; clrscr(); cout<<"enter marks"; cin>>marks; if((marks>=80) && (marks<=90)) { cout<<"marks are between 80 and 90"; } else { cout<<"marks are not between 80 and 90"; } getch(); }