Gigacore
Dreamweaver
Hi guys i'm new to C programming. I've a small assignment program,
Write a Program to accept 10 numbers using one dimensional array and display them.
here how i tried, but haven't executed.
int a[10],i,n;
printf(Enter the number of elements");
scanf("%d", &n);
printf("Enter the elements");
for (i=0;i<n;i++)
scanf("%d", &a)
and the print statement
Write a Program to accept 10 numbers using one dimensional array and display them.
here how i tried, but haven't executed.
int a[10],i,n;
printf(Enter the number of elements");
scanf("%d", &n);
printf("Enter the elements");
for (i=0;i<n;i++)
scanf("%d", &a)
and the print statement