Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. //autor: Kacper Warot
  5.  
  6. float ILORAZ (float a, float b)
  7. {
  8. if (b==0)
  9. return -1;
  10. else
  11. return a/b;
  12. }
  13. int main()
  14. {
  15. int a,b;
  16. cin >> a >> b;
  17. cout << ILORAZ(a,b);
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement