Advertisement
Ola_Imiolczyk

Zad5

Oct 30th, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int a,b,s;
  8.  
  9.  
  10.     cout<<"Podaj liczbe calkowita a: ";
  11.     cin>>a;
  12.  
  13.     cout<<"Podaj liczbe calkowita b: ";
  14.     cin>>b;
  15.  
  16.     s=a+b;
  17.  
  18.     cout << "Suma liczb a:"<<a<<" i b:"<<b<<" wynosi: "<<s<<endl;
  19.  
  20.     return 0;
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement