+ 2

What's wrong with this?

Sorry guys I have some network problems lately https://sololearn.com/compiler-playground/c4G2cYp54qju/?ref=app

23rd Nov 2024, 2:27 PM
Dreyk
Dreyk - avatar
6 Antworten
+ 2
Dreyk , Hello your code seems to work fine. It takes input name and age from user and prints the same .
23rd Nov 2024, 2:30 PM
Suparna Das
Suparna Das - avatar
+ 2
Dreyk , When you hit run , it will show a input dialog where you have to input, Since your code accepts two inputs from user you have to enter String value, then press enter key, After that type an integer value. At the end click on submit. Your code executes accordingly.
23rd Nov 2024, 2:34 PM
Suparna Das
Suparna Das - avatar
+ 1
Thanks HAHA.. I have an issue not knowing how to use my own code
23rd Nov 2024, 2:37 PM
Dreyk
Dreyk - avatar
+ 1
If you are having trouble running this code, it is because you are not providing the input when the input box is opened. In that input box, put all the inputs required by your script. In this case, you have two inputs. So put the first input on line 1 and the second input on line 2. Like this: Jerry 98 Then it will run perfectly.
23rd Nov 2024, 2:46 PM
Jerry Hobby
Jerry Hobby - avatar
0
What are those things showing after I hit run?
23rd Nov 2024, 2:32 PM
Dreyk
Dreyk - avatar
0
Yeahh I'm just a beginner 😅
23rd Nov 2024, 2:51 PM
Dreyk
Dreyk - avatar