Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int pa; int ap; string login; string haslo;
- int main()
- {
- cout<<"podaj login";
- cin>>login;
- cout<<"podaj haslo";
- cin>>haslo;
- if((login=="mateusz3142")&&(haslo=="mateusz4132"))
- {
- cout<<"zalogowales sie"<<endl;
- }
- else
- {
- cout<< "nie zalogowales sie"<<endl;
- return 0;
- }
- for(;;)
- {
- cout << "podaj pierwsza liczbe"<<endl;
- cin>>pa;
- cout<<"podaj druga liczbe"<<endl;
- cin>>ap;
- cout << "dodawanie suma:"<<(pa+ap)<<endl;
- cout << "odejmowanie suma:"<<(pa-ap)<<endl;
- cout << "dzielenie suma:"<<(pa/ap)<<endl;
- cout << "mnozenie suma:"<<(pa*ap)<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement