الاثنين، 1 مايو 2017
علوم حاسوب
برنامج تحويل العملات c++
هاذا الكود حق البرنامج
#include<iostream>
using namespace std;
int main()
{
int d=1,x;
float y=0,g=0,p=0,r;
cout<<"_______________________________________________________________________\n\n";
cout<<"PLEASE ENTER THE AMOUNT : ";
cin>>x;
y=x*111.825;
g=x*0.773813;
p=18.7930;
r=250.120;
cout<<"________________________________________________________________________\n";
cout<<"Amount in the currency of the yen :::|= "<<y<<"{jpy}\n\n";
cout<<"________________________________________________________________________\n\n";
cout<<"Amount in the currency of British pound :::|= "<<g<<"{GBP}\n";
cout<<"_______________________________________________________________________\n\n";
cout<<"Amount in the currency of MXN :::|= "<<p<<"{MXN}\n";
cout<<"________________________________________________________________________\n\n";
cout<<"Amount in the currency of ryal :::|= "<<r<<"{RY}\n\n\n\n\n\n";
cout<<" * * * ******\n";
cout<<" * * * * * * * *\n";
cout<<" * * * * * * ******\n";
cout<<" ******* * * * * *\n";
cout<<" * * * * * *\n";
cout<<"* * * * * *\n";
cout<<"________________________________________________________________________";
return 0;
}
#include<iostream>
using namespace std;
int main()
{
int d=1,x;
float y=0,g=0,p=0,r;
cout<<"_______________________________________________________________________\n\n";
cout<<"PLEASE ENTER THE AMOUNT : ";
cin>>x;
y=x*111.825;
g=x*0.773813;
p=18.7930;
r=250.120;
cout<<"________________________________________________________________________\n";
cout<<"Amount in the currency of the yen :::|= "<<y<<"{jpy}\n\n";
cout<<"________________________________________________________________________\n\n";
cout<<"Amount in the currency of British pound :::|= "<<g<<"{GBP}\n";
cout<<"_______________________________________________________________________\n\n";
cout<<"Amount in the currency of MXN :::|= "<<p<<"{MXN}\n";
cout<<"________________________________________________________________________\n\n";
cout<<"Amount in the currency of ryal :::|= "<<r<<"{RY}\n\n\n\n\n\n";
cout<<" * * * ******\n";
cout<<" * * * * * * * *\n";
cout<<" * * * * * * ******\n";
cout<<" ******* * * * * *\n";
cout<<" * * * * * *\n";
cout<<"* * * * * *\n";
cout<<"________________________________________________________________________";
return 0;
}
***********************
***********************