Ask 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 argument.

+3
Answers (1)
  1. 28 April, 15:44
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers