Advertisement
MeehoweCK

Untitled

Aug 6th, 2021
837
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. double iloczyn(double a, double b)
  6. {
  7.     return a * b;
  8. }
  9.  
  10. int main()
  11. {
  12.     double liczba = iloczyn(6.3, 7.8);
  13.     cout << liczba << endl;
  14.     cout << iloczyn(3.33, 10.25) << endl;
  15.     cout << iloczyn(liczba, 2.5) << endl;
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement