printf("ho_tari\n");

celsius2fahr 본문

C

celsius2fahr

호타리 2023. 8. 31. 13:32
#include <stdio.h>

int main(void)
{
	int celsius;
	double fahr;
	
	scanf("%d", &celsius);
	fahr = 9.0 / 5.0 * celsius + 32;
	
	printf("celsius : %d ---> fahr : %.1f\n", celsius, fahr);
	
	return 0;
}

 

<compile 결과>

'C' 카테고리의 다른 글

compareOp  (0) 2023.08.31
circle  (0) 2023.08.31
bubbleSorting  (0) 2023.08.31
bigLetter  (0) 2023.08.31
baseball game  (0) 2023.08.31