Ask Question
5 June, 19:06

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.

+5
Answers (1)
  1. 5 June, 20:28
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers