i'm trying to make a function that use % operator in objective c my function is:
-(void) image1:(UIImageView *)img1
image10:(UIImageView *)img10
image100:(UIImageView *)img100
score:(NSInteger *)sc
{
NSInteger* s100,s10,s1;
s100 = sc % 100;
s10 = (sc - s100 * 100) % 10;
s1 = (sc - sc % 10);
NSLog(@"%d",s1);
}
but i got errors.. can you guide me to some solution