im making a random maths game (first app)
im having trouble with int CPU
can anyone tell me how to mutiply to variables together correctly?
also would you say this is a clean program so far?
PHP:
int number1 = rand() % 25;
int number2 = rand() % 30;
int USER;
int CPU = ("%d"*"%d", &USER ,&CPU);
printf("what is %d times %d\n",number1, number2);
printf("Enter Your Answer: ");
scanf("%d", &USER);
im having trouble with int CPU
can anyone tell me how to mutiply to variables together correctly?
also would you say this is a clean program so far?