View Code of Problem 26

#include <iostream>
using namespace std;
int main(){
    int f;
   while (cin>>f)
   {
    /* code */
    if (f>0&&f!=32)
    {
        /* code */
        double c =5/((f-32)*9);
        printf("%d.2f\n", c);
    }else if (f==32)
    {
        printf("0.00");
    }
    
    
    
   }
   

    return 0;
}

Double click to view unformatted code.


Back to problem 26