fork download
  1. #include <iostream>
  2. #include <cstdlib>
  3.  
  4. using namespace std;
  5.  
  6. int main(int argc, char *argv[])
  7. {
  8. float a,b,wynik;
  9.  
  10. do {
  11.  
  12. cout << "quotient" << endl
  13. << "..." << endl << endl
  14. << "quotient 2 numbers."
  15. << "\ndivisior does not equal 0"<< endl << endl;
  16.  
  17. cout << "a=";
  18. cin >> a;
  19.  
  20. cout << "b=";
  21. cin >> b;
  22.  
  23. if (b!=0)
  24. cout << "\n" << a << " / " << b << " = " << a/b << "\n\n";
  25. else
  26. cout <<"\ndivisior does not equal 0!\n\n";
  27. }while(b==0);
  28.  
  29.  
  30. return 0;
  31. }
Success #stdin #stdout 0s 3432KB
stdin
5
0

43
4

stdout
quotient
...

quotient 2 numbers.
divisior does not equal 0

a=b=
divisior does not equal 0!

quotient
...

quotient 2 numbers.
divisior does not equal 0

a=b=
43 / 4 = 10.75