cooper-union-ece-160/2-introduction-to-c-program.../21-forloops.c

11 lines
187 B
C

#include <stdio.h>
#include <stdlib.h>
int main() {
int luckyNumbers[] = {4, 8, 15, 16, 23, 42};
for (int i = 0; i < 6; i++) {
printf("%d\n", luckyNumbers[i]);
}
return 0;
}