Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- using namespace std;
- int main(){
- float a;
- cin >> a;
- float b;
- cin >> b;
- a *= b;
- if (int (a) == a)
- cout << a;
- else
- {
- cout << fixed << setprecision(3) << a;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement