Tuesday, June 25, 2019

array example1 in c programming language

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int i,size=5,arr[size];
    for(i=0;i<size;i++)
        scanf("%d",&arr[i]) ;
    for(i=0;i<size;i++)
        printf("%d ",arr[i]);

  //  printf("Hello world!\n");
    return 0;
}

No comments:

Post a Comment

python class topic video