Advertisement
Nabil-Ahmed

Untitled

Jun 19th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.39 KB | None | 0 0
  1. //Compute Quotient and Remainder//
  2. #include<stdio.h>
  3. int main()
  4. {
  5.     int divided, divisor, quotient, remainder;
  6.  
  7.     printf("Enter divided:");
  8.     scanf("%d",&divided);
  9.  
  10.     printf("Enter divisor:");
  11.     scanf("%d",&divisor);
  12.  
  13.     quotient=divided/divisor;
  14.  
  15.     remainder=divided%divisor;
  16.  
  17.     printf("Quotient:%d\n",quotient);
  18.     printf("Reminder:%d",remainder);
  19.  
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement