hey everybody ...as im a starter i tried to create some single scripts first... so i decided to make a program which gets what ever number the user wants and then it calculates the min.
it compiles without any error but its really weird that it calculates the max instead... + idk why there is something wrong with the loop.
could some body help me? :S
cout<<"Please enter a number: ";
cout<<"\nPlease enter another number: ";
cout<<"\nDo you wanna continue?(y,n)\n";
cout<<"Here is the minimum: "<<min;
Quit using Turbo C++. It's a very old compiler and if you are studying from a modern book your programs won't compile to be correct even if they are. Use Visual C++ Express (it's free) from Microsoft or use G++ via MinGW or Cygwin.