#include <stdio.h> main() { int array[100], n, a; printf("Enter the no of element in array\n"); scanf("%d", &n); printf("Enter %d element\n", n); for ( a = 0 ; a < n ; a++ ) scanf("%d", &array[a]); printf("Array element enter by you are:\n"); for ( a = 0 ; a < n ; a++ ) printf("array[%d] = %d\n", a, array[a]); return 0; }
No comments:
Post a Comment