Advertisement
Samiul_Islam_Abir

2

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