Earn while u Learn

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

ad
Showing posts with label perimeter of rectangle in C.math programs. Show all posts
Showing posts with label perimeter of rectangle in C.math programs. Show all posts

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();
}
__________________________________________________________

Sign in / Join

Labels