move exercises, lecture examples, labs into subfolders
This commit is contained in:
16
Exercises/C11/array_loop_example_1.c
Normal file
16
Exercises/C11/array_loop_example_1.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void) // Main : Execution starts here...
|
||||
{
|
||||
// Declare variables - pre-populate the array
|
||||
int Ages[10] = {12,34,23,11,8,19,6,44,9,16};
|
||||
int i;
|
||||
|
||||
// Loop from 0 to 9 inclusive
|
||||
for ( i = 0 ; i < 10 ; i++ )
|
||||
printf ("Item %d contains value %d\n",i ,Ages[i]);
|
||||
|
||||
// Exit the application
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user