Advertisement
tahsiniftekhar

Qoutient and Remainder

Jun 20th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. main()
  4. {
  5.     int x,y,quo,rem;
  6.  
  7.     printf("Enter Two Numbers :\n");
  8.     scanf("%d%d",&x,&y);
  9.  
  10.     quo=x/y;
  11.     rem=x%y;
  12.  
  13.     printf("Quotient of the numbers = %d\n",quo);
  14.     printf("Remainder from the numbers = %d\n",rem);
  15.  
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement