head 1.1;
access;
symbols;
locks; strict;
comment @ * @;
1.1
date 2014.03.11.09.41.42; author root; state Exp;
branches;
next ;
desc
@this is the program in which we have added the distance in feet and inces using function.
@
1.1
log
@Initial revision
@
text
@#include
float input(float* ,float*, float*,float *);
float add(float*,float*,float*,float*,float*,float*);
void display( float*,float*,float*,float*,float*,float*);
int main()
{
float f1,f2,f3;
float i1,i2,i3;
input(&f1,&f2,&i1,&i2);
// printf(“enter the val;ue of i and f are %f %f %f %f ” ,f1,f2,,i1,i2);
add(&i1,&i2,&f1,&f2,&i3,&f3);
display (&i1,&i2,&f1,&f2,&f3,&i3);
return 0;
}
float input (float *a, float *b ,float *c, float *d)
{
printf(“enter the value of i1,i2,f1,f2″);
scanf(” %f %f %f %f”,a,b,c,d);
}
float add(float *x,float *y,float *z,float *p,float *q, float *s)
{
*s=*x+*y;
*q=*z+*p;
if(*s>=12)
{
*q=*q+1;
*s=*s-12;
}
}
void display(float*x,float*y,float*z,float*p,float*q,float*s)
{
printf(“\n(%f-%f)+(%f-%f)=(%f-%f)”,*z,*x,*p,*y,*q,*s);
}
@