mirror of
https://github.com/renbaoshuo/202401-programming-assignments.git
synced 2024-12-16 15:44:39 +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;
|
|
}
|