Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5.  
  6. int i=0, a, b;
  7. char z;
  8.  
  9. do{
  10. cout<<"Podaj a: "; cin>>a;
  11. cout<<"Podaj b: "; cin>>b;
  12. cout<<"Suma a+b="<<a+b<<endl;
  13. cout<<"Dalej [t/n]: ";cin>>z;
  14. }
  15. while(z!='n');
  16.  
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement