c Program of modulus operator

modulus operator (%) in c supported only integer type of data it does not supported real float , double data type value.


write a c program Accept (input)  days from console input device by keyboard  and Find year,month and remaining days using Arithmetic modulus operator %

solution of example c program



output of Arithmetic  modulus operator %

Enter Days    500

year =1

month = 4

Remaining days =15

(Visited 44 times, 1 visits today)

Leave a Reply

Your email address will not be published. Required fields are marked *

Reload Image