Search:

Type: Posts; User: benjamingjd

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    3,548

    Hey guys im a noob please help

    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],...
  2. Replies
    3
    Views
    3,208

    Ive got to this but it still crashes after i input the 10 numbers.

    #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",...
  3. Replies
    3
    Views
    3,208

    im a newbie at c please help.

    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...
Results 1 to 3 of 3