How is that too big? A modulus can't get that big. Here is the code I used to check it:
I think your problem was the face that you didn't use a long int.Code:#include <stdio.h> #include <stdlib.h> #include <math.h> int main() { long int number; number = (20 * pow(77, 2)); number = number % 119; printf("Answer: %d\n", number); system("PAUSE"); return 0; }
Good luck