Answers for "in c array"

C
2

arrays in c

#include<stdio.h>
void main()
{
    int arr[100];
    int i,n;
    printf("Enter array size:");
    scanf("%d",&n);
    printf("Enter array elaments:");
    for(i=0;i<n;i=i+1)
    {
        scanf("%d",&arr[i]);
    }
    printf("Array elements are:");
    for(i=0;i<n;i=i+1)
    {
        printf("%d",arr[i]);
    }
}
Posted by: Guest on February-11-2022

Code answers related to "C"

Browse Popular Code Answers by Language