// pound.c -- defines a function with an argument
#include <stdio.h>

// ANSI prototype
void pound(int n);

int main(void)
{
	int times = 5;
	// ASCII code is 33
	char ch = '!';
	float f = 6.0;
	// int argument
	pound(times);
	// char automatically gets promoted to int
	pound(ch);
	// cast frces f to int
	pound((int) f);
	return 0;
}

/* ANSI style function header says that it takes 
 * one int argument */
void pound(int n)
{
	while (n-- > 0)
		printf("#");
	printf("\n");
}