Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

#include<stdio.h> #include <stdlib.h> #include <time.h> double arithGame(int max

ID: 3614581 • Letter: #

Question

#include<stdio.h>
#include <stdlib.h>
#include <time.h>


double arithGame(int max, int quantity)
{
           max =100;
           intnumber, i;
          srand(time(0));
          printf("How Many Problems Do You Want? ");
          scanf("%d", &quantity);
          printf(" ");
           for (i= 0; i < quantity; i++){
           number= rand() % max + 1;
          printf("%d + %d", number, number);}
          return;
}


int main(void)
{
    printf("Arithmetic Game!" );
    arithGame();
   
    system("PAUSE");
    return 0;
}

Explanation / Answer

please rate - thanks #include #include #include double arithGame() {int max, quantity,answer;            max =100;            intnumber, number2,i;           srand(time(0));           printf("How Many Problems Do You Want? ");           scanf("%d", &quantity);           printf(" ");            for (i= 0; i