#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?

#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

Đánh giá chủ đề này
How to whitelist website on AdBlocker?

How to whitelist website on AdBlocker?

  1. 1 Click on the AdBlock Plus icon on the top right corner of your browser
  2. 2 Click on "Enabled on this site" from the AdBlock Plus option
  3. 3 Refresh the page and start browsing the site