codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
// prog03.cpp put your name here Simple interest #include <iostream> using namespace std; int main() { float P, R, T, I; P = $1200.00; R = 8.5%; T = 12; I = P * R * T; cout << "the interest of a principle of" << P << " with an interest rate of " << R << " over " << T << "months is " << I << endl; return 0; }
Private
[
?
]
Run code
Submit