Program to Compute Quotient and Remainder

#include <stdio.h>
int main(){

    int dividend, divisor, quotient, remainder;

    printf("Enter dividend: ");
    scanf("%d", &dividend);

    printf("Enter divisor: ");
    scanf("%d", &divisor);

    // Computes quotient
    quotient = dividend / divisor;

    // Computes remainder
    remainder = dividend % divisor;
C Program to Find ASCII Value of a Character

    printf("Quotient = %d\n", quotient);
    printf("Remainder = %d", remainder);

    return 0;


Enter dividend: 25
Enter divisor: 4
Quotient = 6
Remainder = 1

In this program, user is asked to enter two integers (dividend and divisor) which is stored in variable dividend and divisor respectively.

Then the quotient is evaluated using division / operator and stored in variable quotient.

C Program to Multiply two Floating Point Numbers