# include <iostream>
#include "conio.h"
using namespace std;
# include <math.h>
void txt (char* str);
void txt (int i);
void tab_sim ();
int main ()
{
int D,E;
char c;
float r, o,k,p,g,w,t,q, l;
txt("******************************************************************************** ");
txt (" Вас приветсвует программа перевода валют для продолжения выберите действие");
cout<<endl;
txt ("******************************************************************************** ");
cout<<endl;
cout<<"D- perevod dolarov v rybli ";
cout<<endl;
cout<<endl;
cout<<endl;
cout<<"W- perevod iz ryblei v dolari";
cout<<endl;
cout<<"********************************************************************************";
cout<<endl;
cout<<"E- perevod evro v rybli";
cout<<endl;
cout<<endl;
cout<<endl;
cout<<"S- perevod iz ryblei v evro";
cout<<endl;
cout<<"}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}";
cin>>c;
if (c=='D')
{
cout<<"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++";
cout<<endl;
txt ("Введите ваши доллары");
cout<<endl;
cout<<"------------------------";
cout<<endl;
cin>>o;
txt ("введите ваш курс валют");
cout<<endl;
cout<<"------------------------";
cout<<endl;
cin>>k;
cout<<"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!";
cout<<endl;
r=o*k;
cout<<r;
cout<<endl;
txt ("ВАШИ деньги в рублях");
}
if (c=='E')
{
cout<<"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++";
cout<<endl;
txt ("Введите ваше евро");
cout<<endl;
cout<<"------------------------";
cout<<endl;
cin>>p;
txt ("Введите ваш курс валют");
cout<<endl;
cout<<"------------------------";
cout<<endl;
cin>>g;
cout<<"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!";
r=p*g;
cout<<r;
cout<<endl;
txt ("ВАШИ деньги в рублях");
}
if (c=='W')
{
cout<<"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++";
cout<<endl ;
txt ("Введите ваши рубли");
cout<<endl;
cout<<"------------------------";
cout<<endl;
cin>>w;
txt ("Введите ваш курс валют");
cout<<endl;
cout<<"------------------------";
cout<<endl;
cin>>t;
cout<<"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&
cout<<endl;
D=w/t;
cout<<D;
cout<<endl;
txt ("ВАШИ деньги в долларах");
}
if (c=='S')
{
cout<<"################################################################################";
cout<<endl;
txt ("Введите ваши рубли ");
cout<<endl;
cout<<"-----------------------";
cout<<endl;
cin>>q;
txt ("Введите ваш курс валют");
cout<<endl;
cout<<"------------------------";
cout<<endl;
cin>>l;
cout<<"________________________________________________________________________________";
cout<<endl;
E=q/l;
cout<<E;
cout<<endl;
txt ("ВАШИ деньги в евро");
}
getchar ();
getchar ();
getchar ();
return 0;
}
void txt (char* str);
void txt (int i);
void tab_sim ();
int kvadrat (int i);
double kvadrat (int i,int j);
void txt (char* str)
{
int i,j;
j=strlen(str);
for(i=0;i<j;i++)
{
if (str[i]==' '){cout<<(char)(str[i]);}
if (str[i]<='п' && str[i]!= ' '){cout<<(char)(str[i]-64);}
if (str[i]>='р'&& str[i]!= ' ') {cout<<(char) (str[i]-16);}
}
}
void tab_sim ()
{
int i;
for(i=32;i<256;i++){cout<<i<<" ="<<(char)i<<endl;}
}
int kvadrat (int i)
{
i=i*i;
return i;
}
double kvadrat (int i,int j)
{
int k;
for ( k=0;k<j;k++)
{
i=i*i;
}
return (double)i;
}
void txt (int i)
{cout<<i;}