Computer Science, asked by anuj2116, 2 days ago

Write a C++ program to compute the quotient and difference of the following: (8) a. A= 17.5 and B = 2 b. P = 12 and Q =3.5​

Answers

Answered by armaans5tha
0

#include <stdio.h>

int main() {

  int dividend = 80, divisor = 20, quotient, remainder;

  // Computes quotient

  quotient = dividend / divisor;

  // Computes remainder

  remainder = dividend % divisor;

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

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

  return 0;

}

Similar questions