title: Having trouble using string
body: <p>Q) Help out our canteen and develop a program for cash
  counter where user selects items out of 5 options with price .
  The program keeps on asking until user hit 'q'. After check
  out calculate total amount and show user the items purchased. </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main()
  {
      char menu[5][15]={"Pizza","Burger","Ice Cream","Pasta","Cold Drink"};
      int price[5]={1000,500,300,100,50};
      int i,amount=0,total=0,item=0;
      printf("\t\t=========ALI FAST FOOD========");
      printf("\n\t\tPlease select any option from below\n");
      for (i=0;i&lt;5;i++)
      {
          printf("\nAvailable items are %s press %d",menu[i],item+1);
          printf("\tPrice is %d",price[i]);
          printf("\n");
          item++;
      }
      int choice;
      int start;
      printf("Enter number to start buying food");
      do {
  
      scanf("\n%d ",&amp;choice);
      if (choice==1)
          {
              static int count=0;
              amount = amount+price[0];
              printf("\nYou bought %d %s",count+1,menu[0]);
              count++;
          }
          else if (choice==2)
          {
              static int count=0;
              amount = amount+price[1];
              printf("\nYou bought %d %s",count+1,menu[1]);
              count++;
          }
          else if (choice==3)
          {
              static int count=0;
              amount = amount+price[2];
              printf("\nYou bought %d %s",count+1,menu[2]);
              count++;
          }
          else if (choice==4)
          {
              static int count=0;
              amount = amount+price[3];
              printf("\nYou bought %d %s",count+1,menu[3]);
              count++;
      }
      else if (choice==5)
          {
              int count=0;
              amount = amount+price[4];
              printf("\nYou bought %d %s",count+1,menu[4]);
              count++;
      }
  
      else if (choice==0 || choice&gt;=7)
      {
          printf("\nEnter correct option please\n");
  
      }
  }
  
       while (choice!=6);
  
  
      total = total + amount;
      printf("\nTotal amount to be pay is %d",total);
      printf("\nThank you for visiting our canteen have a nice day !");
  }
  </code></pre>
  
  <p>In this i need to end the program when user enters "q" instead of "6" . i am unable to do so, please help me fix this issue.</p>