Matematika va informatika ta’lim yo’nalishi 120-guruh talabasi Javliyeva Masturaning Algoritm va dasturlash fanidan tayyorlagan 14-labaratoriyasi Mavzu: Code Blocks muhitida ishlash. Consoleda kiritish-chiqarish


Code Blocksda masalalar va ularning yechimlari


Download 32.53 Kb.
bet2/2
Sana28.10.2023
Hajmi32.53 Kb.
#1729320
1   2
Bog'liq
14-labaratoriya Anvarovna

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;
}

Download 32.53 Kb.

Do'stlaringiz bilan baham:
1   2




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling