Function prn_message()
#include <stdio.h>
void prn_message(int k)
{
int i;
printf("Message for you:\n");
for (i = 0; i < k; ++i)
printf(" Have a nice day!\n");}
void main(void)
{ int n;
printf("Input a small positive integer: ");
scanf("%d", &n);
prn_message(n);}
Previous slide
Next slide
Back to first slide
View graphic version