//DEBUG1 Program
//This program asks the user for a stock number, then validates it.
//A stock number between 200 and 800 inclusive is valid.
#include<iostream>
#include<string>
using namespace std;
int main()
{
int stockNum;
int validateNum(int stockNum);
cout<<"\nPlease enter stock number ";
cin>>stockNum;
if (validateNum(stockNum =1))
cout<<"\nValid number";
else
cout<<"\nInvalid number";
}
int validateNum(int stockNum)
{
int validCode = 0;
if(stockNum>=200 && stockNum<=800)
validCode=1;
system("pause");