Float Float Float Float Return Float Float Float Float Return Float Float Float Float Return

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

main.

c 06/02/17, 12:57 PM

#include<stdio.h>
float f1(float y,float z)
{
float x=(-20+2*z-y)/-8;
return x;
}
float f2(float x,float z)
{
float y=(-38-2*x+z)/-6;
return y;
}
float f3(float x,float y)
{
float z=(-34+3*x+y)/7;
return z;
}

int main()
{
int i;
float x,y,z,x1,y1,z1;
printf("enter the initial values");
scanf("%f%f%f",&x,&y,&z);
for(i=0;i<20;i++)
{
x1=f1(y,z);
y1=f2(x,z);
z1=f3(x,y);
printf("\nx=%f,y=%f,z=%f",x1,y1,z1);
x=x1;y=y1;z=z1;
i++;
}

Page 1 of 1

You might also like