SHARE
TWEET

Compute Quotient and Remainder

samrina_sarkar_7 Jun 20th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top