fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double a, b;
  6. return 0;
  7. cout << "Podaj pierwsza liczbe: ";
  8. cin >>a;
  9.  
  10. cout << "Podaj druga liczbe: ";
  11. cin >>b;
  12.  
  13. if (b==0) {
  14. cout << "Błąd: Nie można dzielić przez zero! " <<endl;
  15. }else{
  16. double wynik = a / b;
  17. cout <<"Wynik dzielenia: " << wynik << endl;
  18. }
  19. // your code goes here
  20. return 0;
  21. }
  22.  
  23.  
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
Standard output is empty