C# Beginner question | SoloLearn: Learn to code for FREE!

0

C# Beginner question

I've been doing exercises today and am stuck on this one. When maybe is inputted it the response should be: "Keep practicing". What am I missing here? I've been staring at this for a while now. I appreciate the help. using System; class MainClass { public static void Main (string[] args) { Console.WriteLine("Do you like programming?"); var v1 = Console.ReadLine(); if (v1 == "yes") { Console.WriteLine("Good! Me too!"); if (v1 == "maybe") Console.WriteLine("Keep practicing!"); } if (v1 == "no") { Console.WriteLine("That's a shame. It's fun!");

7/21/2018 5:36:06 PM

Alex

1 Answer

New Answer

0

dropp { and } in right position