#include <stdio.h>
int main() {
// declare an array and a loop variable.
int a[5], i;
printf("Enter five numbers:\n");
// read each number from the user
for (i = 0; i < 5; i++) {
scanf("%d", &a[i]);
}
printf("The array contains:\n");
// print all the numbers in the array
for (i = 0; i < 5; i++) {
printf("%d ", a[i]);
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: