1
0
mirror of https://github.com/renbaoshuo/202401-programming-assignments.git synced 2024-11-27 14:36:19 +00:00
202401-programming-assignments/【实践课内】1.顺序结构/7-1 计算摄氏温度.c

12 lines
132 B
C
Raw Normal View History

2024-10-16 03:19:34 +00:00
#include <stdio.h>
int main() {
int f;
scanf("%d", &f);
printf("Celsius = %d\n", 5 * (f - 32) / 9);
return 0;
}