#include<stdio.h>
#include<conio.h>
#include<process.h>
#define pi 3.142857
main()
{
char ans = 'y';
float length, breadth, circumference, arear, perimeter, radius, areac;
clrscr();
do
{
clrscr();
printf("\n Rectangle \n");
printf("\nPlease enter length := ");
scanf("%f", &length);
fflush(stdin);
printf("\nPlease enter breadth := ");
scanf("%f", &breadth);
fflush(stdin);
arear = length * breadth;
printf("\nThe area of rectangle are := %5.3f\n", arear);
printf("\n Circle \n");
printf("\nPlease enter radius := ");
scanf("%f", &radius);
fflush(stdin);
circumference = 2 * pi * radius;
printf("\nThe circumference of the circle := %f\n", circumference);
areac = (pi * radius) * radius;
printf("\nThe area of the circle := %f", areac);
printf("\n");
printf("\nEnter any more (Y/N) := ");
scanf("%c",&ans);
fflush(stdin);
if (ans == 'y' || ans == 'Y')
{
continue;
}
elseif (ans == 'n' || ans == 'N')
{
exit(0);
}
} while (ans == 'y' || ans == 'Y');
getch();
return;
}