An open API service indexing awesome lists of open source software.

https://github.com/letsdeepchat/number-of-days-using-java

number of days of acciojob solutions using java
https://github.com/letsdeepchat/number-of-days-using-java

Last synced: 2 months ago
JSON representation

number of days of acciojob solutions using java

Awesome Lists containing this project

README

          

# Number-of-Days-using-Java
number of days of acciojob solutions using java

NUMBER OF DAYS
Given the number of the month, your task is to calculate the number of days present in the particular month.

Note:- Consider non-leap year

User task: Since this is a functional problem you do not have to worry about the input. You just have to complete the function numberofdays() which contains M as a parameter.

Constraints:- 1 <= M <= 12

Output Print the number of days in the particular month.

Example Input

1
Output

31