C Program to Print Quotient and Remainder

 

C Program to Print Quotient and Remainder

 #include <stdio.h>

#include <conio.h>

 void main()

 {

    int a, b, quotient, remainder;

    printf("Enter dividend number: ");

    scanf("%d", &a);

    printf("Enter divisor number: ");

    scanf("%d", &b);

    quotient = a / b;

    remainder = a % b;

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

    printf("Remainder is= %d", remainder);

    getch();

Comments

Popular posts from this blog

C Program to print swap number using third variables

C Program to open and write to a text file using fprintf.