#include <stdio.h>
main()
{
    int num1,num2,q,rem;
    printf("enter first number\n");
        scanf("%d",&num1);
        printf("enter second number\n");
        scanf("%d",&num2);
        q=num1/num2;
    printf("the q of two numbers %d\n",q);
    rem=num1-(num2*q);
    printf("the rem of two numbers %d\n",rem);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: