Advertisement
MATI__

Untitled

Apr 30th, 2017
2,172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int pa; int ap; string login; string haslo;
  5. int main()
  6. {
  7.  
  8. cout<<"podaj login";
  9. cin>>login;
  10. cout<<"podaj haslo";
  11. cin>>haslo;
  12. if((login=="mateusz3142")&&(haslo=="mateusz4132"))
  13. {
  14. cout<<"zalogowales sie"<<endl;
  15.  
  16. }
  17. else
  18. {
  19. cout<< "nie zalogowales sie"<<endl;
  20. return 0;
  21. }
  22.  
  23.  
  24.  
  25.  
  26.  
  27. for(;;)
  28.  
  29.  
  30.  
  31.  
  32. {
  33. cout << "podaj pierwsza liczbe"<<endl;
  34. cin>>pa;
  35. cout<<"podaj druga liczbe"<<endl;
  36. cin>>ap;
  37.  
  38.  
  39. cout << "dodawanie suma:"<<(pa+ap)<<endl;
  40. cout << "odejmowanie suma:"<<(pa-ap)<<endl;
  41. cout << "dzielenie suma:"<<(pa/ap)<<endl;
  42. cout << "mnozenie suma:"<<(pa*ap)<<endl;
  43.  
  44. }
  45.  
  46. return 0;
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement