Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- // ~~~ Variablat < ~~~~~~~~~~~~~~~~~~~//
- int nr,res;
- char zgjidh;
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
- //~~~~~~~ Fillimi programit~~~~~~~~~~~//
- fillimi:
- cout<<"Sheno 'e' - Eur/Den"<<endl;
- cout<<"Sheno 'd' - Den/Eur"<<endl;
- cin>>zgjidh;
- zgjidh = tolower(zgjidh);
- switch(zgjidh){
- case 'e': cout<<"Sa Euro?"<<endl;
- cin>>nr;
- res=nr*61.5;
- cout<<"Rezultati: "<<res<<endl;
- break;
- case 'd': cout<<"Sa Den?"<<endl;
- cin>>nr;
- res=nr/61.5;
- cout<<"Rezultati: "<<res<<endl;
- break;
- default: cout<<"Shkronje e gabuar, try again :D"<<endl;
- goto fillimi;
- }
- /*
- if(zgjidh == 'e'){
- cout<<"Sa Euro?"<<endl;
- cin>>nr;
- res=nr*61.5;
- cout<<"Rezultati: "<<res<<endl;
- }
- else if(zgjidh == 'd'){
- cout<<"Sa Den?"<<endl;
- cin>>nr;
- res=nr/61.5;
- cout<<"Rezultati: "<<res<<endl;
- }
- else{
- cout<<"Numer gabim i shenuar, retry :D"<<endl;
- goto fillimi; // Labela <<
- }
- */
- //~~~~~~~ Fundi programit~~~~~~~~~~~//
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement