printf("\nEnter the length of rectangle: ");
scanf("%f",&lengthRectangle);
printf("\nEnter the width of rectangle: ");
scanf("%f",&widthRectangle);
area = areaRectangle(lengthRectangle,widthRectangle);
printf("\n\nSo, the area of Rectangle is: %f",area);
break;
case '2':
printf("\nEnter the radius of Circle: ");
scanf("%f",&radiusCircle);
area = areaCircle(radiusCircle);
printf("\n\nSo, the area of Circle is: %f",area);
I've been doing this like 2 weeks so at the moment it all looks weird to me!
it isn't my programme it was given to us to solve what was wrong with it, yet they assume with 2 weeks knowledge i will be able to make any sense of it :(
What do i change it to to make the main call the correct thing in order to make the functions work??