Code Blocksda masalalar va ularning yechimlari 1-masala. Hello world so’zini chiqaring.
#include using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
2-masala. X ning absolyut qiymatini hisoblang. #include #include using namespace std;
int main()
{
float x, y; cout<<" x ni kiriting:";
cin>>x;
cout<y=abs(x);
cout<<"x ning absolyut qiymati:"<return 0;
}
3-masala. x ning radianda ifodalangan giperbolik arkkosinusini toping. #include #include using namespace std; int main() { float x, y; cout<<" x ni kiriting:"< cin>>x; y=acosh(x); cout<<"x ning radianda ifodalangan giperbolik arkkosinusi:"< cout< return 0; }
4-masala. X ning radianda ifodalangan arksinusini toping. #include #include using namespace std; int main() { float x, y; cout<<" x ni kiriting:"< cin>>x; y=asin(x); cout<<"x ning radianda ifodalangan arksinus:"< cout< return 0; } 5-masala. giperbolik arksinusni toping. #include #include using namespace std; int main() { float x, y; cout<<" x ni kiriting:"< cin>>x; y=asinh(x); cout<<"x ning giperbolik arksinusi:"< cout< return 0; }
6-masala.x ning radianda ifodalangan arktangisini toping. #include #include using namespace std;
int main() { float x, y; cout<<" x ni kiriting:"< cin>>x; y=atan(x); cout<<"x ning giperbolik arksinusi:"< cout< return 0; }
7-masala. x ning giperbolik arktangesi #include #include using namespace std; int main() { float x, y; cout<<" x ni kiriting:"< cin>>x; y=atanh(x); cout<<"x ning giperbolik arktanges:"< cout< return 0; }
8-masala. X ni o‘zidan katta butun songa yaxlitlash. #include #include using namespace std; int main() { float x, y; cout<<" x ni kiriting:"< cin>>x; y=ceil(x); cout<<"x ni o‘zidan katta butun songa yaxlitlash. :"< cout< return 0; }