#include <stdio.h>

void rectangle(double height, double width)
{
	printf("\nArea:\t\t%lf", height*width);
	printf("\nPerimeter:\t%lf", 2*(height+width));
}
int main()
{
	double height, width;
	printf("Enter height and width of rectangle:\t");
	scanf("%lf%lf", &height, &width);
	
	rectangle(height, width);
	return 0;
}