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
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 
}




INPUT:







OUTPUT:-
     
                                                                    

                                                            ------THANK YOU FOR VISITING THIS PAGE    






Comments

Post a Comment

Popular posts from this blog

Draw Messi sketch using python :-

create spotify logo in python -