Okay I am trying to teach myself C programming
I am sure I will have many questions lol :P
So I am using notes and an example:
Code:#include <stdio.h> #include <math.h> int main (void) { char ch; int x,y; ch = 'j'; x = 6*2; y = 3*x - 50% x; printf("y = %d\n", y); system("Pause"); return 0; }
Why does this print y= 34 at 50%, 26 at 10% and 28 at 20%
I can't figure out the pattern. What does that percent sign do to the equation. Currently set to 50% in the code.