I just realized I posted this same post in Visual C++ when I should've posted it here in Non-visual C++ since this is a console program. Forgive my double posting in two different forums. It will not happen again.

I have been working on this particular case (case B, in my example). I'm in a beginning program class and have been ok at it but this one is stumping me in why it wouldn't display the smallest number. It loops back to the menu option.

Can someone point me in the right direction as to why it's not giving me output? Thank you for any advice.

Code:
#include <iostream>

using namespace std;

char menuChoice;	
	int count = 0;
	int number;
	int groupNbrs;
	int temp_A = 0;
	int temp_B = 0;
	int SENTINEL = -99;
	int limit;
	
int main()
	{
		cout <<"This program will determine the largest or smallest number. " <<endl;
		cout <<"out of the group of numbers that the user chooses." <<endl; 
		cout <<"\n";
		cout << "\n";

	while (menuChoice != 'C' || menuChoice != 'c')
	{
		cout <<"Choose from one of the following menu choices:" <<endl;
		cout <<" " <<endl;
		cout <<"A - Find the largest number with a known quantity of numbers." <<endl;
		cout <<"B - Find the smallest number with an unknown quanity of numbers." <<endl;
		cout <<"C - Quit \n\n\n";	
		cout <<"Enter your choice now: ";
		cin >> menuChoice;	
		cout <<" " <<endl;
			  
		if((menuChoice == 'A' || menuChoice == 'a' || menuChoice == 'B' || menuChoice == 'b'))
			{	
				switch(menuChoice)
				{
					case 'A':
					case 'a':
						cout <<"You chose A - Find the largest number with a known 
                                                             quantity. \n\n";	
						cout <<"Please enter how many numbers you want to enter: ";
						cin >> limit;
						cout <<"Please enter your " <<limit<< " numbers now: "; 
																		
						for (; count < limit; count++)
						{
						    cin >> number;

							if (number >= temp_A)							
							    temp_A = number;
						}
								cout <<"The largest number out of the " <<limit<< " 
                                                                             you entered is: " <<temp_A<< "\n\n\n";
								cout <<"\t=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n" <<endl;
					break;

                                  //**********************************
                                  //CASE A WORKS - do not mess with!!!	
				  //**********************************

					case 'B':
					case 'b':
						cout <<"You chose B - Find the smallest number with an unknown
                                                            quanity of numbers. \n\n";
						cout <<"Begin to type in your numbers: ";	
												 				
      						for(; groupNbrs >= 0; count++)  
							{
								cin >> groupNbrs;

								if(groupNbrs <= temp_B)
								  {
									temp_B = groupNbrs;	
								   	cout <<"The smallest number in the group is: " 
                                                                                   <<groupNbrs;
								  }
							}  	  
					break;
				}

	  if(menuChoice == 'C' || menuChoice == 'c')
	  {
		  switch(menuChoice)
		  {
					case 'C':
	                                case 'c':
						    cout <<"Please type -99 to quit.";
							break;
							return 0;
							
	     }
	                       							
				
	  }
			}
	}
return 0;
}