View Code of Problem 26

#include<stdio.h>
int main()
{double f;
 while(scanf("%lf",&f)!EOF)
 {
   double c=5/9*(f-32);
   printf("%.2lf",c);
 }

}
/*
Main.c: In function 'main':
Main.c:4:23: error: expected ')' before '!' token
  while(scanf("%lf",&f)!EOF)
                       ^
*/

Double click to view unformatted code.


Back to problem 26