codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
// prog02.cpp put your name here area of triangle #include <iostream> using namespace std; int main() { float length, height, area; length = 15.2; height = 12.9; area = height / 2 * length; cout << "the area of a right triangle with height" << height << " and length" << length << " is " << area << endl; return 0; }
Private
[
?
]
Run code
Submit