Answer to Question #328294 in C++ for nalla

Question #328294

#include <iostream.h>

void main()

{

double temperature;

cout<<”Input Temperature :”;

cin>>temperature;

if (temperature>=80)

{cout<<”go swimming”;}

else if (temperature>=50)

{cout<<”go running”;}

else

{cout<<”stay inside”;}

}



1
Expert's answer
2022-04-13T10:33:05-0400
#include <iostream>

using namespace std;

void main()
{
	double temperature;
	cout <<"Input Temperature : ";
	cin >> temperature;
	if (temperature >= 80)
	{
		cout <<"go swimming";
	}
	else if (temperature >= 50&& temperature < 80)
	{
		cout << "go running";
	}
	else
	{
		cout << "stay inside";
	}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS