WAP that will take 10 number from user and print it on output

//WAP that will take 10 number from user and print it on output

#include<stdio.h>
#include<conio.h>
void main()
{
	int a[10],i,n;
	clrscr();
	printf("\nEnter number:");
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		printf("\n\nEnter Elements:");
		scanf("%d",&a[i]);
	}
	printf("\n\n%d",a[i]);
	getch();
}

No comments:

Post a Comment