C Programming
Computer Programming

Program in c to Compute Quotient and Remainder



Write a Program in c to Compute Quotient and Remainder

\* C Program to to Compute Quotient and Remainder *\

# include < stdio.h >
int   main( )
{

int   num,rem,quo,div ;
printf(" Enter any Number : ") ;
scanf("%d ", & num) ;
printf(" Enter the divisor : ") ;
scanf("%d ", & div) ;
rem = num % div  ;
quo = num / div  ;
printf("\n The Quotient of Number is : ") ;
printf("\n %d ",  quo) ;
printf(" \n The Remainder of Number is : ") ;
printf("\n %d ",  rem) ;
return ( 0 ) ;

}

Output of Program:

Output of Program in C to Compute Quotient and Remainder