Skip to content

iujisato/time_challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Time Challenge

Given the time in numerals we may convert it into words, as shown below:

challenge

  • Write a program which prints the time in words for the input given in the format mentioned above.

Input Format

There will be two lines of input:

H, representing the hours
M, representing the minutes

Constraints

1 < H < 12

0 <= M <= 60

Output Format

Display the time in words.

Sample Input

5  
47  
``` 

Sample Output
```
thirteen minutes to six
```

# Solutions
Check the [lang/ruby] (https://github.com/iujisato/time_challenge/tree/lang/ruby) branch for a vanilla Ruby solution(or PR #1).

Check the [lang/javascript] (https://github.com/iujisato/time_challenge/tree/lang/javascript) branch for a vanilla JS solution(or PR #2). 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published