#include<iostream.h> #include<conio.h> void main() { clrscr(); const sunday=0; const monday=1; int c; cout<<"\n enter a day (0 or 1); cin>>c; if(c=sunday&&c=!monday) cout<<"\n holiday"; else cout<<"\n workiing day"; getch(); }
Sunday, 7 December 2014
Program to check given data is holiday or not by using if else statement in c++?
Posted by Madan
Posted on 13:28