Here is the correct answer of the given question above. The one that will be printed when the method printstuff is called is that there will be a compile error because a double cannot be assigned to an int <span>without a cast. Hope this answer helps. </span>
Answer:
The code below is implemented using C++.
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;
}
Answer:
where is the question ???? breh
Your answer is easy just put 2
Answer:
I would pick A B and D to be my answer