Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
using System;

namespace GettingInput
{
  class Program
  {
    static void Main()
    {

bool yes = true;
bool no = false;

Console.WriteLine("Whats your favorite movie");
     string input = Console.ReadLine();
      Console.WriteLine($"{input} is my favorite movie to!");
      Console.WriteLine(" Who is your favorite charcter?");
      string input2 = Console.ReadLine();
      Console.WriteLine ($"{input2} is pretty cool but I kinda like the antagonist in {input} there kinda cool ");
      Console.WriteLine ("who is your second  favorite charcter");
      string input3 = Console.ReadLine();
      Console.WriteLine ($"woo woah wo {input3} is way cooler than {input2} your sain right?");


What I have tried:

Ive tried looking it uo but I cant figure it out
Posted
Updated 19-May-21 18:32pm
Comments
PIEBALDconsult 19-May-21 20:01pm    
Well, if that's all the code, you are definitely missing a few right braces.

1 solution

CS1513 is } expected

So, you're missing some } braces that need to match up to the opening { braces.

Since Visual Studio will always automatically pair up a closing brace, }, with an opening brace, {, when you type it, you deleted the closing braces. You have to put them back.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900