Write a program to find the perimeter of a parallelogram without using static void
{hint P=2(a+b)}
Answers
Answered by
0
/*
* C Program to calculate perimeter of Parallelogram
*/
#include <stdio.h>
#include <conio.h>
int main(){
float side1, side2, perimeter;
printf("Enter the length of adjacent sides of parallelogram\n");
scanf("%f %f", &side1, &side2);
/* Perimeter of parallelogram = 2X(side1 + side2) */
perimeter = 2*(side1 + side2);
printf("Perimeter of parallelogram : %0.4f\n", perimeter);
getch();
return 0;
}
Program Output -
Enter the length of adjacent sides of parallelogram
4.0 3.0
Perimeter of parallelogram : 14.0000
Answered by
0
answer is 14000
Explanation:
hope It helped you
Similar questions