Solve following problems Upload c file Using for loop ask us
Solve following problems Upload *.c file Using for loop ask user to enter 10 temperatures in Fahrenhelt and convert them to Celsius and display
Solution
#include<stdio.h>
int main()
{
int n=10;
float temp[10];
for(i=0; i<n; i++)
{
printf(\"Enter temperature%f in farenheit\", i+1);
scanf(\"%f\", &temp[i]);
\\temp[i]=(temp[i]-32)*(5/9);
}
for(i=0; i<n; i++)
{
printf(\"\ Temperature%d in celcius is %f \ \", i+1, temp[i]);
}
}
