Im Confused | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Im Confused

In confused, I took the some of the C# course and wanted to try out a script, so I input something that I learned and checked to see if it was correct, it was, but it still said error, this happened multiple times, can someone please help, or am I just being dumb. https://code.sololearn.com/c8VHGK2vaXTC/?ref=app

6th Mar 2018, 12:49 AM
Austin Tompkins
Austin Tompkins - avatar
7 Answers
+ 16
Can you type and save what you are attempting in code playground and link it here so others can see what it is that may be going wrong
6th Mar 2018, 12:53 AM
jay
jay - avatar
+ 7
Then we look your script and see what is wrong with it!! Why you did not save the code in your account??
6th Mar 2018, 5:09 AM
Prop de Puppy
Prop de Puppy - avatar
+ 3
I will have the Script by tomorrow, I cant today because of events.
6th Mar 2018, 2:08 AM
Austin Tompkins
Austin Tompkins - avatar
+ 1
I thought it was a lost cause.
6th Mar 2018, 11:47 AM
Austin Tompkins
Austin Tompkins - avatar
+ 1
I added the script to the description.
6th Mar 2018, 12:16 PM
Austin Tompkins
Austin Tompkins - avatar
+ 1
hi. thanks for posting your code on line 17 you used Console.Read() the Read method only expects a single character as input so when you enter multiple characters for a name it will cause errors. Console.ReadLine() will probably fix the problem. ReadLine() accepts multiple characters as input. i hope this helps you. greets. https://code.sololearn.com/caDjE0Z6H3W7/?ref=app
6th Mar 2018, 8:21 PM
Alexander de Bruijn
Alexander de Bruijn - avatar
+ 1
I deleted my last comment, thanks for helping me, your script helped.
7th Mar 2018, 2:12 AM
Austin Tompkins
Austin Tompkins - avatar