C program to initialize integer array elements and then display on screen


C program to initialize integer array elements and then display on screen

 /*************************************

 * C program to initialize integer array elements and then display on screen

 * ***********************************************/


#include<stdio.h>

#include<conio.h>

void main()

{

    int i;

    int n[10]={10,20,30,40,50,60,70,80,90,100};

    clrscr();

    printf("The array elements are\n");

    for(i=0;i<10;i++)

    {

        printf("%d\t",n[i]);

    }

    printf("\nEnd of program");

}


The array elements are

10 20 30 40 50 60 70 80 90 100

End of program


टिप्पणी पोस्ट करा

0 टिप्पण्या