DEV Community

zafar7709
zafar7709

Posted on

Oltinchi dars round

#include <iostream>
#include <cmath>

using namespace std;

int main() 
{
    double son = 3.6;

    cout << "Yaqlitlangan butun son: " << round(son) << endl;

    return 0;
}

Enter fullscreen mode Exit fullscreen mode

agar round() 5 past bolsa pasga yaxtlaydi agar kotta bolgan bosa tepga yaxlitlaydi

Top comments (0)