Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int a, b;
  8. cout << "Wprowadz liczbe a: " << endl;
  9. cin >> a;
  10. cout << "Wprowadz liczbe b: " << endl;
  11. cin >> b;
  12. cout << "Srednia arytmetyczna wynosi: "<< (a+b)/2 << endl;
  13. cout << "Suma wynosi: " << a+b << endl;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement