html
html
1
2
3
4
5
6
7
8
9
10
11
<!-- Created by EGO -->
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
/* Created by EGO */
body {
}
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Created by EGO
/*
Time flies when you’re having fun.
Given a clock that measures 24 hours in a day, write a program that takes the hour as input. If the hour is in the range of 0 to 12, output am to the console, and output pm if it's not.
Sample Input
13
Sample Output
pm*/
/*
Time flies when you’re having fun.
Given a clock that measures 24 hours in a day, write a program that takes the hour as input. If the hour is in the range of 0 to 12, output am to the console, and output pm if it's not.
Sample Input
13
Sample Output*/
function main() {
var hour = parseInt(readLine(), 10);
// Your code goes here
const dayPart = (hour >= 0 && hour <= 12)? "am":"pm";
console.log(dayPart);
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run