I was writing a program that calculates volume of a triangular prism. However it came to my attention that integers larger than what can be stored will cause errors so I placed certain restrictions onto what can be inputted.

Now the problem at hand is when someone types more than the set number of integers that i tell the program to read.
eg
Code:
scanf("%d %d %d", &a, &b, &c);
and...