Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- double dzielenie(int a, int b)
- {
- // uwaga: pamiętaj, że dzieląc przez siebie dwie liczby typu int, komputer poda tylko część całkowitą wyniku!
- return 1.0 * a / b;
- }
- int main()
- {
- cout << dzielenie(7, 3) << endl;
- cout << dzielenie(178, 231) << endl;
- cout << dzielenie(18, 3) << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement