#include <stdio.h>
#include <stdlib.h>
int Y (int y);
int Z (int x, int y);
int main()
{
int x,y,z;
printf("masukan nilai x : ");
scanf("%d",&x);
y = Y(x);
z = Z(x,y);
printf("nilai x = %d\n",x);
printf("nilai y = %d\n",y);
printf("nilai z = %d\n",z);
return 0;
}
int Z (int x,int y)
{
int z;
z = (x*x)+(2*x*y)-6;
return (z);
}
int Y (int x)
{
int y;
y = (x*x)+(2*x)-4;
return (y);
}
Posting Komentar
0Komentar
3/related/default