Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- const int SIZE = 5;
- int main()
- {
- int array[SIZE];
- int i;
- for(i = 0; i < SIZE; i++)
- {
- printf(“Enter element %d: ", i);
- scanf(“%d%*c”, &array[i]);
- }
- printf(“Array contents are as follows.\n");
- for(i = 0; i < SIZE; i++)
- {
- printf(“Element %d is %d\n“, i, array[i]);
- }
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement