Look into switches, too. You may have to nest (put one thing inside of another) some things.
1 2 3 4 5
|
if ( distance < 0)
cout << "enter distance that is greater than zero";
cin>>distance;
else (distance >0)
cin>>choise;
|
not working.
also, hwo do I
nest (put one thing inside of another) some things. |
I use { and } between if/else?
thanks!
Last edited on