Computer Science, asked by meenaharshi19723, 2 months ago

Q14. Write a program to input an integer and find the quotient and remainder after dividing the integer by 6. Print the integer number, quotient and remainder. icse class 10 computer question ​

Answers

Answered by DeveshAnand
1

Answer:

#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;

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

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

   return 0;

}

Similar questions