Area of Circle, Rectangle and Triangle

#include <stdio.h>
int main(void)
{
float circle,rectangle,triangle;
float x,y,radius,b,h;
float PI=3.1416;
int choice;
clrscr();
printf(“This program asks the user to choose among the following tasks.\n”);
printf(“1.Get the area of the circle\n”);
printf(“2.Get the area of a rectangle\n”);
printf(“3.Get the area of a triangle\n”);
printf(“\nPlease enter the number of your choice:\n”);
scanf(“%i”,&choice);
if (choice==1)
{
printf(“Enter radius:\n”);
scanf(“%f”,&radius);
circle = PI*(radius*radius);
printf(“The area of the circle with the radius %.2f is %.2f.\n”,radius,circle);
}
if (choice==2)
{
printf(“Enter length:\n”);
scanf(“%f”,&y);
printf(“Enter width:\n”);
scanf(“%f”,&x);
rectangle = x*y;
printf(“The area of the rectangle which has a length of %.2f and a width of %.2f is %.2f.\n”,y,x,rectangle);
}
if (choice==3)
{
printf(“Enter base:\n”);
scanf(“%f”,&b);
printf(“Enter height:\n”);
scanf(“%f”,&h);
triangle = ((b*h)/2);
printf(“The area of the triangle which has a base of %.2f and a height of %.2f is %.2f.\n”,b,h,triangle);
}
getch();
return 0;
}

#include <stdio.h>
int main(void){float circle,rectangle,triangle;float x,y,radius,b,h;float PI=3.1416;int choice;clrscr();printf(“This program asks the user to choose among the following tasks.\n”);printf(“1.Get the area of the circle\n”);printf(“2.Get the area of a rectangle\n”);printf(“3.Get the area of a triangle\n”);printf(“\nPlease enter the number of your choice:\n”);scanf(“%i”,&choice);
if (choice==1){printf(“Enter radius:\n”);scanf(“%f”,&radius);circle = PI*(radius*radius);printf(“The area of the circle with the radius %.2f is %.2f.\n”,radius,circle);
}
if (choice==2){printf(“Enter length:\n”);scanf(“%f”,&y);printf(“Enter width:\n”);scanf(“%f”,&x);rectangle = x*y;printf(“The area of the rectangle which has a length of %.2f and a width of %.2f is %.2f.\n”,y,x,rectangle);}
if (choice==3){printf(“Enter base:\n”);scanf(“%f”,&b);printf(“Enter height:\n”);scanf(“%f”,&h);triangle = ((b*h)/2);printf(“The area of the triangle which has a base of %.2f and a height of %.2f is %.2f.\n”,b,h,triangle);
}
getch();

return 0;}