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!");

21st Jul 2018, 5:36 PM
Alex
Alex - avatar
1 Answer
0
dropp { and } in right position
21st Jul 2018, 6:30 PM
Konstantsin