OneCompiler

Joshua P. A, Code part 2

246

#include <stdio.h>

// Part II: Arrays
int main() {
// A. Create an array of integers with 10 elements and print all the values
int myArray[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
for (int i = 0; i < 10; i++) {
printf("%d ", myArray[i]);
}

return 0;

}