Advertisement
Guest User

Untitled

a guest
Nov 21st, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  4.  
  5. using namespace std;
  6.  
  7. int sumaliczb(int a, int b);
  8. //{ return a+b;}
  9.  
  10.  
  11. int main(int argc, char* argv[])
  12. {
  13. int l1=0, l2=0, l3=0;
  14.  
  15.  
  16.  
  17. cout << "Podaj pierwsza liczbe =";
  18. cin >> l1;
  19.  
  20. cout << "Podaj druga liczbe =";
  21. cin >> l2;
  22.  
  23. l3=sumaliczb(l1,l2);
  24.  
  25. cout << endl << "SUMA WYNOSI:" << endl;
  26. cout << l1 << "+" << l2 << "=" << l3 << endl << endl;
  27.  
  28. system ("Pause");
  29.  
  30. return 0;
  31. }
  32.  
  33. int sumaliczb(int a, int b)
  34. {return a + b;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement