Write a program to display Quotient and Remainder of division of 2 variables.


#include <stdio.h>
int main(){
    int dividend, divisor, quotient, remainder;
    printf("Enter dividend: ");
    scanf("%d", &dividend);
    printf("Enter divisor: ");
    scanf("%d", &divisor);
    quotient = dividend / divisor;
    remainder = dividend % divisor;
    printf("Quotient = %d\n", quotient);
    printf("Remainder = %d", remainder);
    return 0;
}
Write a program to display Quotient and Remainder of division of 2 variables. Write a program to display Quotient and Remainder of division of 2 variables. Reviewed by on August 30, 2019 Rating: 5
Powered by Blogger.