#include
#include
#include
void main()
{
float n = 1.34;
printf(“%f %f”,ceil(n), floor(n));
getch();
}
What will be the ouput of the program?
A. 1.000000 2.000000
B. 1.500000 1.000000
C. 2.000000 1.000000
D. 1.300000 2.000000
Hướng dẫn
Chọn C là đáp án đúng
Xem lời giải
Xem lời giải
Xem thêm: hàm ceil() và floor()
Thư viện tài liệu12 Tháng bảy, 2023 @ 2:56 chiều