Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- double input;
- cout.setf(ios::fixed);
- cout.precision(2);
- while(cin>>input)
- {
- cout.setf(ios::fixed);
- cout.precision(2);
- if(input!=0)
- {
- cout<<input<<endl;
- }
- else
- {
- cout<<"0.00"<<endl;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement