COMPUTE THE QUOTIENT & REMAINDER OF TWO NUMBER ENTERED BY USER :-
QUESTION :- COMPUTE QUOTRIENT & REMAINDER
SOURCE CODE:-
#include <stdio.h>
int main ()
{
int a,b,rem,quot; //declaration part
int a,b,rem,quot; //declaration part
printf ("enter the value of a &b \n"); //to print the output
scanf (" %d%d",&a,&b); //to take the input from the user
rem=a%b;
quot=a/b;
printf ("rem=%d and quot=%d ",rem,quot);
return 0 ; //it will not return any exit value
}
OUTPUT:-
------THANK YOU FOR VISITING THIS PAGE
Thank you
ReplyDeleteWelcome
Delete