Earn while u Learn

Tips tweaks hacks on computer with C C++ VB tutorials and ways to earn money online

ad

perimeter of rectangle in C.

This program is for calculating perimeter of rectangle in C.

CODE:
__________________________________________________________

#include(stdio.h)
#include(conio.h)
main()
{
int l,b,perimeter;
printf("Enter the length of rectangle");
scanf("%d",&l);
printf("Enter the breadth of rectangle");
scanf("%d",&b);
perimeter=l*b;
printf("\n\tperimeter of rectangle = %d",area);
getch();
}
__________________________________________________________

0 comments:

Sign in / Join

Labels