0

Help, I don't understand why my code isn't working i followed the youtube tutorial exactly that way it said

Link: https://code.sololearn.com/cQ56bl2SPeT4/#cs Can someone pls tell me why when you type a code in Visual studio and type the same code here you get multiple errors?

13th Oct 2020, 11:12 PM
Kaba K
Kaba K - avatar
5 Respostas
0
@Abhay I don't think this person came for people to tell them that, I think they came here to learn.
14th Oct 2020, 12:44 AM
PheonixD
PheonixD - avatar
+ 4
All statements must end with a semicolon: ";" and every opening curly bracket "{" must have it respective closing curly bracket "}" I recommend you to take SoloLearn's tutorial first. Here you can learn at your own pace. Don't rush it. Go lesson by lesson and ask here when you have a doubt, also check the comments section of every lesson to learn more about the topic.
13th Oct 2020, 11:22 PM
Kevin ★
+ 1
namespace SoloLearn { class Program { static void Main(string[] args) { Console.WriteLine(cube(5)); } static int cube(int num){ int result = num * num * num; return result; } } } just a advice ,go through your code 4-5 times before asking a doubt here ,but I think what is more important than watching and copying pasting from YouTube tutorials is understanding whatever you are writing ,as of now seems like you don't and I can only recommend to go through sololearn lessons one by one and ask any doubt you have
13th Oct 2020, 11:18 PM
Abhay
Abhay - avatar
0
Give ; after return
14th Oct 2020, 4:51 AM
Martin Jefferson
Martin Jefferson - avatar
- 1
@Abhay "damn i felt that ;C"
13th Oct 2020, 11:27 PM
Kaba K
Kaba K - avatar