fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main()
  5. {
  6. double x=1;
  7. double hx=1;
  8. double z=1;
  9. double hz=2;
  10. double y=0.1;
  11. double hy=0.7;
  12. printf ("x z y U\n");
  13. printf (" \n");
  14. while (x<=2)
  15. {
  16. z=1;
  17. y=0.1;
  18. while (z<=3)
  19. {
  20. y=0.1;
  21. while (y<=0.7)
  22. {
  23. double U;
  24. U=(cos(pow(x,y)+3*pow(z,2))/sin(pow(x,y)+3*pow(z,2)))-log(fabs((pow(x,3)-y)/z));
  25. printf("%1.f %1.f %1.f %2.f\n", x, z, y, U);
  26. y+=hy;
  27. }
  28. z+=hz;
  29. }
  30. x+=hx;
  31. }
  32. return 0;
  33. }
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
Success #stdin #stdout 0.01s 5308KB
stdin
Standard input is empty
stdout
x			z			y			U
									 
1			1			0			 1
1			3			0			-2
2			1			0			-1
2			3			0			-6