Advertisement
Guest User

Untitled

a guest
Oct 10th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include "pch.h"
  2. #include <iostream>
  3.  
  4. using namespace std;
  5. int main()
  6. {
  7. int a, b, wynik1;
  8. cout << "podaj a: ";
  9. cin >> a;
  10. cout << "podaj b: ";
  11. cin >> b;
  12.  
  13. if (b != 0)
  14. {
  15. wynik1 = a / b;
  16. cout << "a/b = " << wynik1 <<"\n======================";
  17. }
  18. else
  19. {
  20. cout << "nie mozna podzielic\n======================";
  21.  
  22. }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement