Write a statement that declares a variable intended to repre

Write a statement that declares a variable intended to represent body temperature and initializes it to 37.05. Write a statement that declares a named constant that represents absolute zero and initializes it to - 273.15.

Solution

#include<iostream>
using namespace std;

#define ABSOLUTE_ZERO -273.15

int main()
{
float body_temperature = 37.05;
  
cout << \"Body temperature is : \" << body_temperature << endl;
cout << \"Value of absolute zero is : \" << ABSOLUTE_ZERO << endl;
return 0;
}

OUTPUT:
Body temperature is : 37.05
Value of absolute zero is : -273.15

 Write a statement that declares a variable intended to represent body temperature and initializes it to 37.05. Write a statement that declares a named constant

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site