Advertisement
MATI__

Untitled

Apr 30th, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 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. }
  21.  
  22.  
  23.  
  24.  
  25.  
  26. for(;;)
  27.  
  28.  
  29.  
  30.  
  31. {
  32. cout << "podaj pierwsza liczbe";
  33. cin>>pa;
  34. cout<<"podaj druga liczbe";
  35. cin>>ap;
  36.  
  37.  
  38. cout << "dodawanie suma:"<<(pa+ap)<<endl;
  39. cout << "odejmowanie suma:"<<(pa-ap)<<endl;
  40. cout << "dzielenie suma:"<<(pa/ap)<<endl;
  41. cout << "mnozenie suma:"<<(pa*ap)<<endl;
  42.  
  43. }
  44.  
  45. return 0;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement