MadLibs project

I am doing the mad libs project. Every time i get to step 10 and complete it, even after following along on the project walkthrough, I all of a sudden keep getting errors saying i am missing a colon. I have found that some of these projects have bugs. despite my code looking exactly like the project walkthrough. so frustrating

using System;

namespace MadLibs
{
class Program
{
static void Main(string args)
{
/*
This program … madLibs game coding challenge.
Author: …
*/

  // Let the user know that the program is starting:
  Console.WriteLine("The Mad Libs game has started:");


  // Give the Mad Lib a title:
  string title = "Fun and Games";

  Console.WriteLine(title);
  // Define user input and variables:
  Console.Write("Enter a name: ");
  string name = Console.ReadLine();
  Console.Write("Enter a word: ");
  string word = Console.ReadLine();
  Console.Write("Enter an adj: ");
  string adj = Console.ReadLine();
  Console.Write("Enter an adj: ");
  string adj2 = Console.ReadLine();
  Console.Write("Enter an adj: ");
  string adj3 = Console.ReadLine();
  Console.Write("Enter a verb: "):
  string verb = Console.ReadLine();
  Console.Write("Enter a noun:");
  string noun1 = Console.ReadLine();
  Console.Write("Enter another noun: ");
  string noun2 = Console.ReadLine();

step 10 is below. i only have issues with the syntax on the lines below, not the top. It makes no sense to me.

  Console.Write("Enter an animal: ");
  string animal = Console.ReadLine();
  Console.Write("Enter a food: ");
  string food = Console.ReadLine();
  Console.Write("Enter a fruit: ");
  string fruit = Console.ReadLine();
  Console.Write("Enter a superhero: ");
  string hero = Console.ReadLine();
  Console.Write("Enter a country: ");
  string country = Console.ReadLine();
  Console.Write("Enter a dessert: ");
  string dessert = Console.ReadLine();
  Console.Write("Enter a year: ");
  string year = Console.ReadLine();
 
  





  // The template for the story:

  string story = "This morning _ woke up feeling _. 'It is going to be a _ day!' Outside, a bunch of _s were protesting to keep _ in stores. They began to _ to the rhythm of the _, which made all the _s very _. Concerned, _ texted _, who flew _ to _ and dropped _ in a puddle of frozen _. _ woke up in the year _, in a world where _s ruled the world.";


  // Print the story:

}

}
}

Hello @nateolsen91, welcome to the forums! Check the end of this line:

string adj3 = Console.ReadLine();
Console.Write("Enter a verb: "): <--that should be a semicolon (;)
1 Like

Thank you! what doesn’t make sense is all of that will still run, it only throws an exception when I input everything from pick an animal on step 10.

That I can’t answer, I’m afraid!