קוד:
#include <stdio.h>
#include <conio.h>
void main (void)
{
float a,b,c,d,e,h;
float Pmeroob, Pmeshul, Ptrap, Smeroob, Smeshul, Strap;
printf ("Give a=\n");
scanf ("%f", &a);
printf ("Give b=\n");
scanf ("%f", &b);
printf("Give c=\n");
scanf ("%f", &c);
printf ("Give d=\n");
scanf("%f", &d);
printf ("Give e=\n");
scanf("%f", &e);
printf ("Give h=\n");
scanf("%f", &h);
Pmeroob=b+h+a+e;
Pmeshul=c+d+e;
Ptrap=Pmeroob+Pmeshul;
Smeroob=h*a;
Smeshul=e*c/2;
Strap=Smeroob+Smeshul;
printf("shetah=", Ptrap);
printf("hekef=", Strap);
getch();
}