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