Write the definition of a function printGrade, which has a char parameter and returns nothing. The function prints on a line by itself the message string Grade: followed by the char parameter (printed as a character) to standard output. Don't forget to put a new line character at the end of your line. Thus, if the value of the parameter is 'A', the function prints out Grade: A
.
.
Click on the title for the solution
.
.
void printGrade (char A)
{
cout<<"Grade: "<<A<<endl;}
.
Click on the title for the solution
.
.
This is the answer:
:
void printGrade (char A)
{
cout<<"Grade: "<<A<<endl;}
Comments
Post a Comment