title: loop on prompt with a yes or no?
body: <p>Good afternoon, 
     I'm trying to accomplish a task that i know should be doable. however my attempts seem to fail every time. My endeavor is to learn to code in Objective -c and have been making good progress. what i would like to do is add a loop to my current application that asks at the end if i would like to run again or some thing to that regard, and reply with a yes or no. if no the program ends and if yes it jumps back to the top of the project to start all over. kinda like what i have below? forgive me please if its not quite perfect, im still getting used to programing and am finding it incredibly fun. </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main(void)
  {
    char loop = yes;
  
    while (loop = yes)
   {
     .
     .
     .
   }
    printf ("would you like to continue (yes/no)/n");
       scanf ("%s", loop);
  }
  </code></pre>