#include <stdio.h> #include <stdlib.h> int main() { int arraynumber[]={3,5,7,8,23,64,75,73}; //expects to output the index 7 which is 73. note that the index starts from 0 which is 3. printf("%d", arraynumber[7]); //printf("Hello world!\n"); return 0; }
int main() { int i; int loopNumbr [] = { 2, 4, 5,65,7,8, 9}; //there are 6 indeces in these arrya start 0 index for (i=0; i<7;i++){ printf("%d\n", loopNumbr[i] ); } return 0; }
Comments
Post a Comment