A simple program that demonstrates a one-dimensional array in the C programming language.

  I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.My mobile number here in the Philippines is 09173084360.


Program Listing

/* one_dimensional_array.c
   Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.blogspot.com and www.jakerpomperada.com
   jakerpomperada@gmail.com
   Bacolod City, Negros Occidental Philippines.
*/


#include <stdio.h>

int main()
{
    int arr[7],a=0;

    printf("\n\n");
	printf("\tOne Dimensional Array in C");
	printf("\n\n");
    for(a=0; a < 7; a++)
    {
        printf("\tGive Value in a[%d]: ", (a+1));
        scanf("%d", &arr[a]);
    } 

    printf("\n\n");
    printf("\tList of elements of the array: \n\n");
    printf("\t");
    for(a = 0; a < 7; a++)
    {
        printf("%d ", arr[a]);
    }
	printf("\n\n");
	printf("\tEnd of Program");
	printf("\n\n");
       
    return 0;
}

Leave a Reply

Your email address will not be published.