OneCompiler

Input?

I was using the JS onecompiler runner thingy and I don't know how to use the input "STDIN" thing, I started learning JS yesterday btw.

2 Answers

4 years ago by

@Ryan Christiansen You can use the readline module to read STDIN. Please check the following example

https://onecompiler.com/javascript/3xw2uutpn

4 years ago by OneCompiler

1
خذ عددين أ ، ب وأعد العدد الأكبر.

القيود:
0 <= أ ، ب <= 1000

الإدخال:
رقمان - أ ، ب كل منهما في سطر جديد
الإخراج:
رقم أكبر حول أ ، ب

مثال:

المدخلات:
3
5
الخرج:
5

3 years ago by Ishak Ben Ali