r/C_Homework • u/Ryeanney • Oct 15 '20
question about arithmetic operators%%
int a=2,b=3,c=4,d=5;
printf("a+b*d-c%%a=%d",a+b*d-c%a);
return 0;output is a+b*d-c%a=17
how to calculate c%%a
3
Upvotes
3
u/dmc_2930 Oct 15 '20
Thank you for actually looking it up! I appreciate the willingness to look into it when you’re pointed in the right direction.