Question: Design nested loop that displays 10 rows of # characters. There should
ID: 3556410 • Letter: Q
Question
Question: Design nested loop that displays 10 rows of # characters. There should be 15 # characters in each row.
"I am in beginners computer logic and programming class and wanted a simple pseudocode for the above program. So far I did this (see below), but I know I am somewhere wrong, but can't figure our where. I would greatly appreciate if someone can help me fix it."
Declare Integer counterRows, counterColumns
Declare String displayHash
For counterRows = 1 to 10
For counterColumns = 1 to 15
Set displayHash =
Explanation / Answer
int row, col;
for (row = 0; row < 10; row++) {
for (col = 0; col < 15; col++) {
printf("#");
}
printf(" ");
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.