Computer Science, asked by razesoni, 3 months ago

Program using single dimensional array

Answers

Answered by sanjanachauras73
1

Answer:sorry I am in class 9 l was

Answered by Shivali2708
4

Here's your answer:

#include<stdio.h>

int main()

{

int arr[5], i;

for(i = 0; i < 5; i++)

{

printf("Enter a[%d]: ", i);

scanf("%d", &arr[i]);

}

printf("\nPrinting elements of the array: \n\n");

for(i = 0; i < 5; i++)

{

printf("%d ", arr[i]);

}

// signal to operating system program ran fine

return 0;

}

hope it helps..

Similar questions