Im trying to shorten a bit of code,
printf("Please enter your students exam mark seperated by a space\n");
scanf("%d %d %d %d %d %d %d %d %d %d", &grade[1], &grade[2], &grade[3], &grade[4],...
Type: Posts; User: benjamingjd
Im trying to shorten a bit of code,
printf("Please enter your students exam mark seperated by a space\n");
scanf("%d %d %d %d %d %d %d %d %d %d", &grade[1], &grade[2], &grade[3], &grade[4],...
#include <stdio.h>
#include <stdlib.h>
int main(){
int grade[10]={0};
printf("Please enter your students exam mark seperated by a space \n");
scanf("%d %d %d %d %d %d %d %d %d %d \n",...
Please could someone explain to me why this isnt working, also is there a way for me to not have to type in all the variables when i want multiple typed like i have done here. thanks.
#include...