/* forLoopFunctionDemo.c  P. Conrad 09/30/05
   Demonstrate writing a line of stars with a for loop */

#include <stdio.h>

void print40Stars(void)
{

  int i;

  for (i=0; i<40; i++)
    printf("*");
  printf("\n");
}



int main(void)
{
  int i;

  print40Stars();

  for (i=0; i < (40 - 22)/2; i++)
    printf(" ");
  printf("Welcome to my Program!\n");

  print40Stars();


  return 0;
}


