k=fu(x); i have problem with this function in the code the value is zero all the time can you please see what is wrong
Rich (BB code):
#include<stdio.h>
#include<math.h>
double area(double x,double y);
int fu(int l);
int main(){
double x ,y ,z,k;
printf("enter two number");
scanf("%lg%lg",&x,&y);
z=area(x,y);
k=fu(x);
printf("area is z =%lg and k is%d",z,k);
return 0;
}
double area(double x,double y){
double z;
z=x*y;
return z;}
int fu(int l){
return l+l;}
Attachments
-
347 bytes Views: 22
Last edited by a moderator: