Displaying Source Code(s)
|
|
Write a function called display(char *) that displays a message
--------------------------------------------------------------------------------
/*
* Write a function called display(char *) that displays a
message
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
void display(char *);
int main(void)
{
int N;
int i;
printf("
Enter the Number Of Time You Want To Print : ");
scanf("%d", &N);
for (i = 0; i < N; i++)
display("Unix Programming Lab");
printf("<BR>);
return(0);
}
void display(char *str)
{
printf("
%s", str);
}
|
|
|