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

13 lines
167 B
C

#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;
}