-->

Header Ads

WAP to Show Array Element Entered by User.

C Program:

#include<stdio.h>

#include<conio.h>

void main()

{

int a[5],b;

clrscr();

printf("Enter no : ");

 for(b=0;b<5;b++)

  {

    scanf("%d",&a[b]);

  }

printf("======output============");

for(b=0;b<5;b++)

{

printf("\n%d",a[b]);

}

getch();

}

Output of c program:


No comments

Powered by Blogger.