Perimeter Program in C

Previous
Next
#include<stdio.h>
int main()
{
	int l,b,p;
	printf("Enter length and breadth :\n");
	scanf("%d%d" , &l, &b);
	p = 2*(l+b);
	printf("Perimeter is : %d \n", p);
	return 0;
}
Previous
Next

Add Comment

Courses Enquiry Form