#include<stdio.h> #include<conio.h> void main() { clrscr(); int arr[50], n; printf("How many element you want to store in the array ? "); scanf("%d",&n); printf("Enter %d element to store in the array : ",n); for(int i=0; i<n; i++) { scanf("%d",&arr[i]); } printf("The Elements in the Array is : \n"); for(i=0; i<n; i++) { printf("%d ",arr[i]); } getch(); }
C program to demonstrate One Dimentional Array.
Reviewed by
on
December 22, 2019
Rating:
No comments: