This commit is contained in:
2025-09-19 16:32:47 +03:00
parent e1b9f50edc
commit a92349ee38
12 changed files with 374 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
#include <stdio.h>
int main(void)
{
puts("Input the number of elements to store in the array: ");
int arr = 0;
scanf("%d", &arr);
int nums[arr] = {};
for(size_t j = 0; j < arr; j++) {
printf("For Element %d enter num!\n", j);
int num = 0;
scanf("%d", &num);
nums[j] = num;
}
for(size_t j = 0; j < arr; j++) {
printf("Element %d = %d\n", j, nums[j]);
}
return 0;
}