what shold I add to get the percent symbol after my grade th

what shold I add to get the percent symbol after my grade

the following in my code:

grade=grade+(weight[i] * marks[j][i]);
}
printf(\"Student #%d\'s final marks is %4.2lf \ \",j + 1,grade);

}

my output look like

The output should look like:

Student #1\'s final mark is 8.50%

Student #2\'s final mark is 28.50%


Student #1\'s fina l marks is 8.50 Student #2\'s fina marks is 28.50 Student #3\'s fina l marks is 8.50 Student #4\'s fina l marks is 8.50

Solution

Answer:

printf(\"Student #%d\'s final marks is %4.2lf%\ \",j + 1,grade);

grade=grade+(weight[i] * marks[j][i]);
}
printf(\"Student #%d\'s final marks is %4.2lf%\\n\",j + 1,grade);

}

what shold I add to get the percent symbol after my grade the following in my code: grade=grade+(weight[i] * marks[j][i]); } printf(\

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site