Preview:
#include<stdio.h>
int main()
{
    int dsr;
    int qtnt; 
    int dnd ;
    printf("enter dividend :");
    scanf("%d",&dnd);
    printf("enter divisor :");
    scanf("%d",&dsr);
    qtnt=dnd/dsr;
    printf("quotient is %d\n",qtnt);
    int rem=qtnt%dsr; //or insted of line 13 14 15 use qtnt%=dsr;
    printf("remaider is : %d\n",rem);
    qtnt=rem;
    printf("quotient is now : %d\n",qtnt);
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter