andyhaus1057
Aug 6, 2009, 03:10 PM
How would I design a nested loop that displays 10 rows of # characters that should be 15 # characters in each row?
slapshot_oi
Aug 7, 2009, 03:44 AM
How would I design a nested loop that displays 10 rows of # characters that should be 15 # characters in each row?
#include <stdio.h>
int main(int argc, char *argv[]) {
int i;
int j;
for(i = 0; i != 10; i ++){
printf("\n");
for(j = 0; j !=15; j ++)
printf("%c", '#');
}
}