title: C programming: IF statements
body: <p>I need help on a problem on C programming. I was wondering if there is a way to have a user input a word to the console and it would display whatever you program it to. Heres a example of what I want to do</p>
  
  <pre><code>int Choice;
  int Energy = 100;
  printf ("Type 2817!\n");
  scanf ("%s", &amp;Choice);
  
  if(Choice == 2817)
  {
      printf ("You have started the game\n\n\n\n\n\n\n\n\n\n\n");
  }
  else if(Choice == "Energy") //This isnt working in my compiler.
                                  //Apparently the == sign is the underlined error
  {
      printf("%d", Energy);
  }
  </code></pre>
  
  <p>So far I can only type numbers but I want to be able to type words and be able to use a command. SO basically I want to be able to type "Energy" and it will show the amount of energy you have (printf ("%d", Energy)</p>
  
  <p>Please help,</p>
  
  <p>Thank you for reading.</p>