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. 

3.write a program to check whether a triangle is valid or not when the three angles of triangle is are entered through the keyboard A triangle is valid if the sum of all three angle of equal to 180 degrees  

4,,if age of ram ,shyam and ajay are input through the keyboard write a program to determine the youngest of three.  


 

Comments

Popular posts from this blog

If lengths of three sides of a tringle are input through the keyboard write a program to find the area of tringle.

the length and breadth of a rectangle and radius of a circle are input through the keyboard. write a program to calculate the area and perimeter of the rectangle, and the area and circumference of the circle