Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- // Remainder without modulus operator
- int main()
- {
- int dividend,divisor,quotient ,p2,sum;
- printf("a,b: \n");
- scanf("%d%d",÷nd,&divisor);
- quotient=dividend/divisor;//dividend ÷ divisor = quotient
- p2=quotient*divisor;
- sum=dividend-p2;
- printf(" sum =%d",sum);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement