#include <iostream> #include <cmath> int main() { double x = 3.8; std::cout << "floor(3.8) = " << std::floor(x) << std::endl; // خروجی: 3 return 0; }