Muhammad al-Xorazmiy nomidagi Toshkent axborot texnalogiyalari universiteti 310-22 guruh talabasi Xusnitdinov Ibratning Dasturlash fanidan 2-amaliy mashg’uloti .
Bajardi:Xusnitdinov Ibrat
Tekshirdi:Begulov Oʻtkir
1 -jadval
#include #include using namespace std;
int main (){
float a=0,b=M_PI/2,y,h;
int m=10;
h=(b-a)/m;
for(float x=0;x<=M_PI/2;x+=h){
y=2*cos(pow(x,1/2))+0.5;
cout< eturn 0;}
2-jadval
A .
#include
#include using namespace std;
int main() {
float summa=0,a;
for(int i=1;i<=28;i++){
a=pow((4*i-28),2);
summa+=a;
cout<<"summa="<}
cout<<"natija="<return 0;
}
B .
#include #include using namespace std;
int main() {
float summa=1,a;
for(int n=1;n<=11;n++){
a=(pow(n,3)+3*n+2.8)/pow((pow(n,2)+7*n+91),1/3);
summa=summa*a;
cout<<"summa="<}
cout<<"natija="<return 0;
}
C.
#include
#include using namespace std;
int main() {
float summa=0,a;
for(int i=1,m=1;i<=6,m<=13;i++,m++){
a=(fabs(i+m)+28)/(i+pow(m,2)+pow(2,m-i));
summa=summa+a;
cout<<"summa="<cout<<"natija="<return 0;
}
3-jadval
#include #include using namespace std;
int main(){
int n = 40,i;
float A = 0.1, B =M_PI,h = (B-A)/n,y,x = A,s=3*x;
do{
i = 0,s=3*x ;
do{
s +=n*(n+2)*pow(x,n);
i++;
}while(i <= n);
y=(x*(3-x))/pow((1-x),3);
cout << "x = " << x << " y = " << y << " s = " << s << endl;
x += h;
}while(x < B);
return 0;
}