> How do you write a program in C++ that prints out asterisks for every student that has a certain grade?

How do you write a program in C++ that prints out asterisks for every student that has a certain grade?

Posted at: 2014-12-18 
A simple solution. A for loop will work allowing you to print an asterisk for each count.

printf("B ");

for(int count = 0; count < students_with_b; count++)

{

printf("* ");

}

printf("\n");