Puzzle L31


Function to print a line of N stars

[E-3]Write a function that prints a line of N stars followed by an end of line. N is the parameter of the function. Here is the output of the function when N is 8:

********

Here is a skeleton of the function and a main() program that exercises it:

#include <stdio.h>

void starLine( int n )
{
}

int main()
{
  starLine( 8 );  	
  return 0;
}


Answer         Next Page         Previous Page Home