Computer Science, asked by mansimittal0113, 3 months ago

4. Write a program to find the product and Remainder of two numbers where
a=25 and b=6.




Answers

Answered by sharveshsathesh1629
0

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;

}

Explanation:

then;

Enter dividend: 25

Enter divisor: 6

get Quotient = 4

get Remainder = 1

Answered by vijayakumarchinthala
0

Answer:

Python Program to find product and reminder of two numbers

a=25

b=6

print("product of two numbers",a*b)

print("reminder of two numbers",a%b)

Explanation:

* used to for multiplication

% (mod) operator used to calculate reminder

Similar questions