Advertisement
Spocoman

01. USD to BGN

Aug 31st, 2023 (edited)
515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.     double usd;
  7.     cin >> usd;
  8.  
  9.     double bgn = usd * 1.79549;
  10.  
  11.     cout.setf(ios::fixed);
  12.     cout.precision(2);
  13.  
  14.     cout << bgn << endl;
  15.  
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement