Modify the function created in question 6 above to form the square out of whatever character is contained in character parameter fillCharacter. Thus, if side is 5 and fillCharacter is #, then this function should print the following:
#####
#####
#####
#####
#####
1
Expert's answer
2013-04-09T08:37:20-0400
#include <iostream>
using namespace std;
void print_square(int size, char fillCharacter) { for (int x = 0; x < size; x++) { for (int y = 0; y < size; y++) cout << fillCharacter; cout << endl; } }
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment