Muammo: problem'ni dasturini tuzib bera oladi.
Despite He or she knows how to code
Despite He or she knows how to code
// Problem
float a, b, orta;
cout<<"Enter two numbers: ";
cin>>a>>b;
orta = (a+b)/2;
cout<<"Average of these numbers: "<<orta;
float a, b, orta;
cout<<"Enter two numbers: ";
cin>>a>>b;
orta = (a+b)/2;
cout<<"Average of these numbers: "<<orta;
// <------------Math---------->
// daraja, ildiz, modul
// pow -> power - daraja
int side, area;
cout<<"Enter the side of the square: ";
cin>>side;
area = pow(side, 2);
cout<<"Area is : "<<area;
// daraja, ildiz, modul
// pow -> power - daraja
int side, area;
cout<<"Enter the side of the square: ";
cin>>side;
area = pow(side, 2);
cout<<"Area is : "<<area;
//endl - endline - qatorning tugashi
int a, V, S;
cout<<"Enter the side of cube: ";
cin>>a;
V = pow(a, 3);
S = 6*pow(a,2);
cout<<"Hajm: "<<V<<endl;
cout<<"To'la sirt: "<<S;
int a, V, S;
cout<<"Enter the side of cube: ";
cin>>a;
V = pow(a, 3);
S = 6*pow(a,2);
cout<<"Hajm: "<<V<<endl;
cout<<"To'la sirt: "<<S;
// kvadrat ildiz - square root
float a, ildiz;
cin>>a;
ildiz = sqrt(a);
cout<<ildiz;
float a, ildiz;
cin>>a;
ildiz = sqrt(a);
cout<<ildiz;
// modul - absolyut qiymat - absolute
// int a, modula;
// cin>>a;
// modula = abs(a);
// cout<<modula<<endl;
// int a, modula;
// cin>>a;
// modula = abs(a);
// cout<<modula<<endl;