A function to print a character number of times and in number of lines
Only a couple of things:


int lines,times; - one declaration per line, please!
scanf("%c%d%d", &amp;userChar, &amp;times, &amp;lines) - where does one number end and the next start?. You need to include some terminating characters, such as ,

printf("please enter a character, number of times in a line, and number of lines, separated by a comma:\n");
while ((scanf("%c,%d,%d", &amp;userChar, &amp;times, &amp;lines)) == 3)

An expression such as while (++y &lt;= numberOfLines) is confusing, what value does y have at each step? It'd be better to rewrite this as a for loop

for ( y = 0; y &lt; numberOfLines; y++ )