Initialize

1. Click on the square to define a function for calculating the area of a square.

2. Similarly define functions for the other geometrical figures.

3. The defined functions are shown in the middle window.

4. Now make appropriate function calls in the main program to compute the area of the figure displayed.

5. Press execute to execute the code and see the output.

1. Enter number of arguments :
2. Enter datatype of arguments :
3. Enter return datatype of the function :
4. Choose formula for area of the square :
π*a*a
1. Enter number of arguments :
2. Enter datatype of arguments :
3. Enter return datatype of the function :
4. Choose formula for area of the rectangle :
1. Enter number of arguments :
2. Enter datatype of arguments :
3. Enter return datatype of the function :
4. Choose formula for area of the triangle :
1. Enter number of arguments :
2. Enter datatype of arguments :
3. Enter return datatype of the function :
4. Choose formula for area of the circle :
int main() {
 float totalArea;
totalArea =
  printf("Total Area : %f/n", totalArea);
  return 0;
}
Step Execution
//function for square
//function for rectangle
//function for triangle
//function for circle
Code Output