1-Labaratoriya ishi
Bajardi: TT-11-21-guruh talabasi Ismoilova Muhayyo
Qabul qildi: Ablaqulov Kamoliddin
Berilishi :
Dastur kodi:
#include
#include
using namespace std;
int main (){
float x, y;
K:
cout << "x:"<<"\n"; cin>>x;
if (x>0){
y=tan(x)+pow(x+1,1/2);
}
else if(x<=0){
y=pow(x,3)-3*pow(x,2)-4*x+7;
}
cout<<"Natija="<goto K;
return 0;
}
Dastur natijasi:
X<0 holat.
X>=0 holat
0>
Dostları ilə paylaş: |