mirror of
https://github.com/renbaoshuo/202401-programming-assignments.git
synced 2024-12-03 17:26:21 +00:00
13 lines
167 B
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;
|
||
|
}
|