Wednesday, 13 June 2018

Program in c to declare an array of 5 element input these value and displays on output screen in C

/* uses of array */
# include <stdio.h>
void main ()
{
int a[5] ;
int i ;
clrscr () ;
for (i=0 ; i<5 ; i++)
{
printf ("\n Enter a number:") ;
scanf ("%d", & a[i]) ;
}
for (i=o ; i<5 ; i++)
printf ("\n %d", a[i]) ;
getch () ;
}



No comments:

Post a Comment

Featured post

Kalgudi Interview Round!!

Those who cleared the second round of kalgudi got an email from exceller to complete their Kalgudi Interview Round. So here we will discuss ...