Write a program to input length and breadth of a pond and find its area by using user defined function.
Answers
Answered by
9
Answer:
there is the method to write this program in c language.
Attachments:
Answered by
26
Answer:
Explanation:
#include<stdio.h>
#include<conio.h>
voidmain ( );
{
int a,b,c,area;
printf("enter length and breadth");
scanf("%d%d",&l,&b);
c=area(l,b);
printf("area of pond is %d%d",c);
getch( );
}
int area (int x, int y)
{
int area ;
area= x*y ;
return (c);
}
Similar questions
English,
5 months ago
Physics,
5 months ago
Math,
5 months ago
Computer Science,
11 months ago
Math,
1 year ago