#include <iostream> #include <cmath> int main() { double num = 2.5; double result = ceil(num * 3.1 + 1.8); std::cout << "ceil(2.5 * 3.1 + 1.8) = " << result << std::endl; return 0; }