This is my c project where i am learning basics. Topic : Functions, Area calculations
float squareArea(float side); float circleArea(float rad); float rectangleArea(float a, float b);
int main() { float a = 5.0; float b = 10.0;
printf("area is : %f", rectangleArea(a, b));
return 0;
}
float squareArea(float side) { return side * side; }
float circleArea(float rad) { return 3.14 * rad * rad; }
float rectangleArea(float a, float b) { return a * b; }