Skip to content

Commit 2f5e5ef

Browse files
author
kunaljainSgit
authored
Update Array
1 parent 6be80a8 commit 2f5e5ef

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Array

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
// Program to take 5 values from the user and store them in an array
1+
/ Program to take 5 values from the user and store them in an array
22
// Print the elements stored in the array
33
#include <stdio.h>
44

55
int main() {
66
int values[5];
77

8-
printf("Enter 5 integers: ");
8+
printf("Enter 5 integers:\n");
99

1010
// taking input and storing it in an array
1111
for(int i = 0; i < 5; ++i) {
1212
scanf("%d", &values[i]);
13+
1314
}
1415

15-
printf("Displaying integers: ");
16+
printf("Displaying integers:\n");
1617

1718
// printing elements of an array
1819
for(int i = 0; i < 5; ++i) {

0 commit comments

Comments
 (0)