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?
5 Respuestas
0
@Abhay I don't think this person came for people to tell them that,
I think they came here to learn.
+ 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.
+ 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
0
Give ; after return
- 1
@Abhay "damn i felt that ;C"