#include <stdio.h>

void printgreeting(void);  //prototype for function
void goodbye(void);

void main()
{
printf("Welcome to my program\n");
printgreeting();		//call the function
printf("End of program\n");
goodbye();
}

void printgreeting()   //user function
{
printf("Hello\n");
}

void goodbye()
{
printf("Goodbye cruel world!!");
}