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;