C Program to divide number and find quotient and remainder.

0
6
digitalample eye
Write a C program to divide an integer by another integer and find quotient and remainder.
C Program to divide number and find quotient and remainder.
Write a programming code to find quotient and remainder.

Write a program to divide an integer by another integer and find the quotient and remainder.
#include <stdio.h>
#include <conio.h>
void main()
{
int a,b,quo,rem;
clrscr();
printf("Enter two numbers a&b:");
scanf("%d%d",&a,&b);
quo=a/b;
rem=a%b;
printf("Quotient=%d",quo);
printf("nRemainder=%d",rem);
getch();
}

LEAVE A REPLY

Please enter your comment!
Please enter your name here