Tuesday, February 10, 2015

Calculate the area of a rectangle

/* Program to calculate the area of a rectangle */ #include <stdio.h> int main() { float l, w; float area; printf("Enter size of each sides of the rectangle: "); scanf("%f%f", &l, &w); area = l * w; printf("Area of rectangle is: %.3f", area); getch(); return 0; }

Share

& Comment

0 comments:

Post a Comment

 

Copyright © 2015 Code Fervor™ is a registered trademark.

Designed by Templateism By Naman Kumar