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?

Hi Javier, welcome to Codeasy forum!
Could the mistake be in the ‘success’ spelling? (you have a single ‘s’ in the end)

Thanks so much…!!

1 Like