codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
//Multiply 2 Floating Point Numbers #include<stdio.h> int main() { double a, b, product; printf("Enter two numbers "); scanf("%lf %lf", &a, &b); product = a*b; printf("product = %.2lf", product);//2 decimal places return 0; }
Private
[
?
]
Run code
Submit