Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
using namespace std; int main() { cout << trunc(0.60) << "\n"; cout << trunc(0.40) << "\n"; cout << trunc(5) << "\n"; cout << trunc(5.1) << "\n"; cout << trunc(-5.1) << "\n"; cout << trunc(-5.9) << "\n"; return 0; }
0
0
5
5
-5
-5