pastebin
Add a new paste
View all pastes
Change language
Dutch
English
French
Russian
menu
URL Shortener
Multiple URL shortener
browser info
Whois IP and domain lookup
Capture a Website screenshot
Disqus Chatroom
Registration
pastebin
Paste Search Dynamic
Recent pastes
cnt
5 hours ago
warning infinitely in
5 hours ago
BHPSOGWO
5 hours ago
Arrays associate
5 hours ago
Schedule
5 hours ago
Arrays associate error
5 hours ago
test
5 hours ago
ArrayList
5 hours ago
mainloop
5 hours ago
ArrayHash
5 hours ago
Area of
#include <stdio.h>
int
main
(
)
{
float
a, b, h;
float
area;
printf
(
"Enter the value for two bases & height of the trapezium: n"
)
;
scanf
(
"%f%f%f"
, &a, &b, &h
)
;
area =
0.5
*
(
a + b
)
* h ;
printf
(
"Area of the trapezium is: %.3f"
, area
)
;
return
0
;
}
Parsed in 0.005 seconds