Please help me with the task: Path to success

Hello, I’m working on this task:

Create two bool variables: loveWhatYouDo and doWhatYouLove, and set their initial values to true. Then, using an if statement, output “My path to success” only if you love what you do and do what you love.

Here is my code:

namespace Booleans
   class PathToSuccess
       static void Main(string[] args)
           bool loveWhatYouDo = true;
           bool doWhatYouLove = true;
          if (loveWhatYouDo && doWhatYouLove);
          Console.WriteLine("My path to succes");  

Can anyone please help me to solve it?

You have a typo - add another ‘s’ for success in the WriteLine statement

1 Like