JakubKaczmarek_123

z8

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