Answer:
#include <iostream>
#include <conio.h>
using namespace std;
main()
{
float temp[10], sum;
sum=0;
for (int i=1 ; i<= 10; i++)
{
cout<<"Enter the temperature in Decimal for temp"<<i<<"=";
cin>>temp[i];
}
for (int j=1 ; j<=10 ; j++)
{
sum = sum+temp[i];
}
cout<< "/nThe Total Temperature ="<<sum;
getch();
}
Step-by-step explanation:
In this program we can take values of temperature in decimal values by taking the data type of temp variable as float. Array is used to enter the ten temperature values. Sum variable is used to add all the values.