// if, while buyruglari bilan
#include #include int main()
{
float f,c,d,h;
double a,b,x,y;
int i,k;
cout<<" a,b,c,d,h,f = "<cin>>a>>b>>c>>d>>h>>f;
cout<x=c; i=0;
while (x<=d)
{
k=0; i=i+1;
if(x*yy=a*c*x*x*x*x*log(a)-b;
k=1;
cout<<" i="<x=x+h;
}
return 0;
}
Misol-2.
Bu misolda murakkab tarmoqlanish tsiklga olingan. Shu boisdan ham tsikl ichida murakkab tarmoqlanishni tashkil qilish strukturasidan foqdalanamiz. Bu algoritmning yuriklashgan varianti quyida keltirilgan:
//M-13.1
//Murakkab misol takrorlanishda tarmoqlanish
// if, for buyruglari bilan
#include #include int main()
{
float a,b,c,d,f,v,r,q,t,h;
double alpa,beta,x,y;
int i,j,k,l;
cout<<" a,b,c,d,f,v,r,q,t,h = "<cin>>a>>b>>c>>d>>f>>v>>r>>q>>t>>h;
cout<<" alpa,beta = "<cin>>alpa>>beta;
cout<l=0;
for (x=q;x<=t;x=x+h)
{
j=0; l=l+1;
if(d>f) {
y=0;j=1;
for (i=1;i<=10;i++)
y=y+(a*i*i+c*x)/(b*b+2*sin(x));
cout<<" l="<}
return 0;
}