1
0
mirror of https://github.com/renbaoshuo/202401-programming-assignments.git synced 2024-11-23 21:58:41 +00:00
202401-programming-assignments/【额外练习】选择结构/7-16 选择-简单的运算.c

13 lines
167 B
C
Raw Normal View History

2024-10-30 15:00:18 +00:00
#include <math.h>
#include <stdio.h>
int main() {
double n;
scanf("%lf", &n);
printf("%d %d %.5lf\n", (int)ceil(n), (int)floor(n), n);
return 0;
}