nikolas_serafini

Lista 3 - Exercício 58

Jun 16th, 2013
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main()
  5. {
  6.     int j,i;
  7.     float oper,x;
  8.  
  9.     printf("X        Y        f(x,y)\n");
  10.     for (i = 1; i <= 10; i++)
  11.     {
  12.         x = pow(i,2);
  13.         for (j = 1; j <= 5; j++)
  14.         {
  15.             oper = (pow(x,2) + 3*x + pow(j,2))/(x*j - 5*j - 3*x + 15);
  16.             printf("%.f        %d        %f\n",pow(i,2),j,oper);
  17.         }
  18.     }
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment