JakubKaczmarek_123

z6

Dec 4th, 2020
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4. int a, b;
  5. int main(){
  6. b = 0;
  7. for (int i = 0; i < 10; i++){
  8. cout << "podaj liczbe: " << endl;
  9. cin >>a;
  10. b += a;
  11. }
  12. cout << b;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment