fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b, roznica;
  6.  
  7. cout << "Podaj dwie liczby" << endl;
  8.  
  9. cout << "podaj pierwszą liczbe:" << endl;
  10. cin >> a;
  11.  
  12. cout << "podaj drugą liczbe:" << endl;
  13. cin >> b;
  14.  
  15. roznica = a - b;
  16. cout << "roznica wynosi:" << roznica;
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0s 5312KB
stdin
Standard input is empty
stdout
Podaj dwie liczby
podaj pierwszą liczbe:
podaj drugą liczbe:
roznica wynosi:645750547