You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
344 B
C
15 lines
344 B
C
5 years ago
|
/*
|
||
|
* C Program to Find Area of Parallelogram
|
||
|
*/
|
||
|
#include <stdio.h>
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
float base, altitude;
|
||
|
float area;
|
||
|
printf("Enter base and altitude of the given Parallelogram: \n ");
|
||
|
scanf("%f%f", &base, &altitude);
|
||
|
area = base * altitude;
|
||
|
printf("Area of Parallelogram is: %.3f\n", area);
|
||
|
return 0;
|
||
|
}
|