Skip to content

Commit a02f820

Browse files
array implementation in c
array in c
1 parent c5c05c2 commit a02f820

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

c program of array

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#include <stdio.h>
2+
3+
int main() {
4+
int values[5];
5+
6+
printf("Enter 5 integers: ");
7+
for(int i = 0; i < 5; ++i) {
8+
scanf("%d", &values[i]);
9+
}
10+
11+
printf("Displaying integers: ");
12+
for(int i = 0; i < 5; ++i) {
13+
printf("%d\n", values[i]);
14+
}
15+
return 0;
16+
}

0 commit comments

Comments
 (0)