how to modulo in c without %

[ad_1]

how to modulo in c without
#include

int main()
{
    //1
    int no,divisor,remainder;

    //2
    printf("Enter the number : ");
    scanf(

    //3
    printf("Enter the divisor : ");
    scanf(

    //4
    while(no >= divisor){
        no = no - divisor;
    }

    //5
    remainder = no;

    //6
    printf("The remainder is

    return 0;
}

[ad_2]

Please follow and like us:
error
fb-share-icon