Saturday, March 31, 2012

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

/*
 * 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("
Unix Programming Lab");
}

No comments:

Post a Comment