# include & lt; Stdio. H> Int main () {
[1] a, b, h, s,//define variables
Printf (" please enter trapezoid on the bottom, the base and height. A, b, h \ n ");
The scanf ([2]);//keyboard input a, b, h
S=(a + b) * h/2;//calculating the area of the trapezoid
Printf (" trapezoid area s=% 2 f \ n ", [3]).//output calculation results
return 0; }
CodePudding user response:
Write their own, basic didn't do, also study goal programming,If it is wrong, according to oneself idea also fill them up first