Ask Question
28 January, 15:23

Write a method named timesTen. The method should accept a double argument and return a double value that is ten times the value of the argument.

+4
Answers (1)
  1. 28 January, 19:06
    0
    The code below is implemented using C++.

    Explanation:

    #include

    #include

    using namespace std;

    double timesTen (double num);

    int main ()

    {

    double num, tentimesnum;

    int i=0;

    cout << "Enter number: ";

    cin >>num;

    tentimesnum=timesTen (num);

    int a = 1;

    / / while loop execution

    while (a < = 10)

    {

    cout << "value of "<< a <<": "<< tentimesnum << endl;

    a++;

    }

    return 0;

    }

    double timesTen (double num)

    {

    return num*10.0;

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write a method named timesTen. The method should accept a double argument and return a double value that is ten times the value of the ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers