Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int a, b;
- int main(){
- b = 0;
- for (int i = 0; i < 10; i++){
- cout << "podaj liczbe: " << endl;
- cin >>a;
- b += a;
- }
- cout << b;
- }
Advertisement
Add Comment
Please, Sign In to add comment