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
- Host: GitHub
- URL: https://github.com/letsdeepchat/number-of-days-using-java
- Owner: letsdeepchat
- Created: 2021-12-17T03:03:30.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-17T03:04:42.000Z (over 4 years ago)
- Last Synced: 2025-04-06T09:52:40.589Z (12 months ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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