etonw

function for taking numerical input ( double) from the user

May 31st, 2022 (edited)
693
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. // function for taking numerical input ( double) from the user
  2. double input_double ()
  3. {
  4.     double output;
  5.     std::cout << " (enter number) : ";
  6.     std::cin >> output;
  7.     std::cout << endl;
  8.     return output;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment