Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. double division(double dividend,double divisor)
  4. {
  5.     double quotient=0;
  6.  
  7.     quotient=dividend/divisor;
  8.  
  9.     return quotient;
  10. }
  11.  
  12. int main()
  13. {
  14.     int a=0;
  15.     int b=1;
  16.     std::cout << "Type in your dividend\n";
  17.     std::cin >> a;
  18.     std::cout << "Type in your divisor\n";
  19.     std::cin >> b;
  20.     std::cout << "The quotient is: " << division(a,b) << "\n";
  21.     std::cout << "Alles richtig!\n";
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement