Write a program using two functions, one to calculate the Circumference and the another to calculate Area of a rectangular as shown below:
Hint:
i. Circumference = (a + b) * 2
ii. Area = a * b
هذا الكود بس الناتج يطلع عدد الي يطلع غير صحيح ممكن تشووفلي السبب
#include<stdio.h>
double circumference (double a, double b)
{
return((a+b)*2);
}
double Area (double a,double b)
{
return(a*b);
}
int main (void)
{
double a,b;
printf("Enter a and b \n");
scanf("%lf",&a,&b);
printf("the circumference %f \n",circumference(a,b));
printf("the Area %f \n",Area(a,b));
return(0);
}