google407ec42f1ae5ff0e.html
top of page

Program to find quotient and remainder

Writer's picture: Yatendra AwanaYatendra Awana

Program to find quotient and remainder

#include<stdio.h>

int main(void)

{

int x,y,quo,rem;

printf("Enter two numbers : ");

scanf("%d%d",&x,&y);

if(y) /*if y is non-zero*/

{

quo=x/y;

rem=x%y;

printf("Quotient=%d, Remainder=%d\n",quo,rem);

}

else

printf("Divide by zero error\n");

return 0;

}


Recent Posts

See All

Comments


Facilities-:
One to one  online  / Offline Class
Individual training 
Corporate Training
E-Certificate for each course
Life time video accessible
E-Books

About us-:
Fin Computer Class
Sector 107, Noida  U.P.
M-: 9871715299
E: fincomputerclass@gmail.com
W-: www.computerclass.co.in
W-: www.it402.com
Y-:www.youtube.com/yka39

All Rights Reserved @ fin computer class     Design & Developed by Yatendra Kumar Awana

bottom of page