View Code of Problem 26

#include<stdio.h>
#include<math.h>
#define N 1000
int main(){
	int a[N];
	int i,j;
	int n;
	double b[N];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d ",&a[i]);
	    b[i]=5.0/9.0*(a[i]-32);
	}
	for(i=0;i<n;i++){
		printf("%.2f ",b[i]);
	}
	
	printf("\n");
	return 0;	

}

Double click to view unformatted code.


Back to problem 26