int a = 15; a = a%5;
short int b = 53; b = b%15;
long int c = 125L; c = c % 14;
float d = 6.128; d = d%7;
The modulus (%) operator can only be used on integer types.
Previous Question Next Question
Your comments will be displayed only after manual approval.