Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a, b;
- cout << "Wprowadz liczbe a: " << endl;
- cin >> a;
- cout << "Wprowadz liczbe b: " << endl;
- cin >> b;
- cout << "Srednia arytmetyczna wynosi: "<< (a+b)/2 << endl;
- cout << "Suma wynosi: " << a+b << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement