// Program to take 5 values from the user and store them in an array
// Print the elements stored in the array
#include <stdio.h>
void main()
{
int values[5];
printf("Enter 5 integers: ");
for(int i = 0; i < 5; ++i) // taking input and storing it in an array
{
scanf("%d", &values[i]);
}
printf("Displaying integers: ");
for(int i = 0; i < 5; ++i) // printing elements of an array
{
printf("%d\n", values[i]);
}
}