Im trying to write a program that will read 10 grades from the user and store them in an array. Then call a function, that takes the array as a parameter and then display all the grades below 70 and all the grades above 96. This is what I have so far.......
Code:#include <stdio.h> #include <stdlib.h> void analyze(const int b[]); int main(int argc, char *argv[]) { int grades[10]; int x; //counter printf("Enter 10 grades:\n"); for(x = 0; x < 10; x++){ scanf("%d", &grades[x]); } analyze(grades); system("PAUSE"); return 0; } void analyze(const int b[]) { int j; //counter for(j=0; j<10; j++){ if(b[j] < 70) } }



LinkBack URL
About LinkBacks



