Advertisement
samrina_sarkar_7

Compute Quotient and Remainder

Jun 20th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int a,b;
  5.     int quotient,remainder;
  6.     printf("Enter two number");
  7.     scanf("%d%d",&a,&b);
  8.     quotient=a/b;
  9.     remainder=a%b;
  10.     printf("The quotient is %d\n",quotient);
  11.     printf("The remainder is %d\n",remainder);
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement