Friday, 2 November 2012

Water Condition....


// Enter Temperature and Check either you can take bath or not...
#include <iostream>
using namespace std;
int main(){
int temprature;
cout << "Please Enter Temprature in Celcius: " << endl;
cin >> temprature;
if(temprature>=20 && temprature<=30)
cout << "You can take bath." << endl;
else if(temprature>=10 && temprature<=20)
cout << "You can make shave easily."<<endl;
else
cout << "You can neither take bath nor make shave. Otherwise you'll face difficulties." << endl;
return 0;
}

No comments:

Post a Comment