//Writing simple functions
#include <stdio.h>
void printhello(void);	//prototype
void printgoodbye(void);

void main()
{
printhello();			//call function
printf("Welcome to my program\n");

printhello();			//call function
printhello();			//call function

printf("End of program\n");
printgoodbye();
}

void printhello()
{
printf("Hello\n");
}

void printgoodbye()
{
printf("Goodbye cruel world!\n\n");
}
