Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  1
Language: C/C++
Code:

#include <iostream>

using namespace std;

int main(){
    
    double gbp_per_pln {4.85};
    
    cout<<"welcome to British Pounds to Polish Zloty converter"<< endl;
    
    //cout<<"Enter currency rate 1GBP value"<< endl;
    //cin >> gbp_per_pln;
    
    cout<<"Enter the value in British Pounds: ";
    
    
    double gbp {0.0};
    double pln {0.0};
    
    cin>>gbp;
    pln= gbp *gbp_per_pln;
    cout<<gbp<< " British Pounds is equivalent to \n" <<pln<<" Polish Zloty"<<endl;
    cout<<endl;
    return 0;
}     
Comments: