Mega Code Archive

 
Categories / C / Unix
 

Program with a function display(int) to print the integers

#include <stdio.h> #include <stdlib.h> #include <unistd.h> void display(int); int main(void) { int N; printf(" Enter the Number Of Time You Want To Print : "); scanf("%d", &N); display(N); printf(" "); return(0); } void display(int N) { int i; for(i = 0; i < N; i++) printf(" WWW"); }