Answer:
The code below is implemented using C++.
Step-by-step explanation:
#include <iostream>
#include <string>
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;
}