#include<stdio.h> #include<conio.h> void main() { float a,b,area; /* a, b for 2 sides and area for result */ clrscr(); printf("enter two sides of rectangle \n"); scanf("%f%f",&a,&b); /* inputting the values from keyboard */ area=a*b; /* finding the area by multiplying two sides*/ printf("\n area of rectangle with sides %.2f & %.2f=%.2f", a,b,area); /* gives the result with two decimal places */ getch(); }Output:Enter two sides of rectangle 20 30 area of rectangle with sides 20.00 & 30.00 = 600.00