#include<iostream.h> #include<conio.h> void main() { int score; clrscr(); cout<<"\n enter sachin's score:"; cin>>score; if(score>=50) { if(score>=100) cout<<"\n sachin scored a century and more runs:"; else { cout<<"\n sachin scored mare than half cantury:"; cout<<"\n cross your fingers and pray he complets century:"; } } else { if(score==0) cout<<"oh my god"; else if(score>0) cout<<"\n not in form today:"; } getch(); }
Sunday, 7 December 2014
C++ program for conditional if else statement
Posted by Madan
Posted on 13:53