#include<stdio.h> #include<conio.h> #include<math.h> int main() { int a, K=0; float E,b,m,n,S=0,Sum=0; for (a=-4;a<=3;a++) { b=-3; do { E=0.000000001; n=12*a-cos(0.1*b); printf("\nn=%6.2f \n",n); if (n<=-6) m=21*a*n+2.5*n*n; else if (n<=-1) { if (a+b!=E) m=(38*a/(13*(a-b))); else { printf(" m ne suschestvuet"); continue;} } else {if (n>6) m=sqrt(fabs(a+n)*(a+n)*(a+n))+(b+m)*(b+m); else m=sin(a*n*n); } printf("m=%6.2f \n",m); if ((fabs(n)>5 && (fabs(n)<12))) K=K+1; if (m<=10){S=S+m,Sum++;} b+=0.5; } while(b<=3); } if (Sum==0) {printf ("Sum net"); goto the_end;} else printf ("S="); printf("k="); printf("m=%6.2f \n",m); the_end: getch ();return 0; } |