given the length and breadth of rectangle write a program to find the whether the area of the rectangle is greater than its perimeter for example the area of rectangle with length =5 and breath=4 is greater than its perimeter.
Given the length and breadth of rectangle write a program to find the whether the area of the rectangle is greater than its perimeter for example the area of rectangle with length =5 and breath=4 is greater than its perimeter.
#include<stdio.h>
int main()
{
int length,breath;
printf("Enter the value of breath and length")
scanf("%d%d,&length,&breath);
rectangle=2*(length*breath);
perimeter=2(length+breath);
printf("The value is rectangle =%d",rectangle);
printf("The value is perimeter =%d",perimeter);
return 0;
}
Output----Enter the value of breadth and length=
3
4
The value is rectangle=24
The value is perimeter=14
very important program----
1,Given three point (X1,Y1),(X2,Y2),and (X3,Y3),write a program to check if all the three points fall on one straight line.
2. write a program a find the absolute value of a number entered through the keyboard.
Comments
Post a Comment