5)C program to find the quotient and remainder:
Logic:- we know quotient and remainder both comes in division operation.In C ("/") divisor operator gives the quotient and ("%") modulo operator gives the remainder.
Example:-
NOTE:- Here we declare every variable in a separate line, but we can also declare in one line.
Logic:- we know quotient and remainder both comes in division operation.In C ("/") divisor operator gives the quotient and ("%") modulo operator gives the remainder.
Example:-
NOTE:- Here we declare every variable in a separate line, but we can also declare in one line.
Comments
Post a Comment