View Code of Problem 26

#include<iostream>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <cmath>
using namespace std;
#pragma warning(disable:4996)


int main() {
	int n;
	while(scanf("%d",&n)!=EOF){
		double c = 0;
		c = 5 / 9.0*(n - 32);
		printf("%.2lf", c);
		
	}
	return 0;
}	

Double click to view unformatted code.


Back to problem 26