i got my program to do stuff, but i wondered if i can take it to the next level...
when a user enters a number of 1458.125478 i got it to do abs.... google is soo good!! but now im wondering if you could display just + or - depending on what is entered. I tried creating an int for the sign to go into but it just doesnt want to know!
then i thought about a string so i went down that route not knowing that you cant combine a string and a float together!
so i had another idea
int main(){
float n; //n is the number entered
cout << " please input your number with the sign";
cin >> n; // prints everything
cout << n<<endl;
return 0;
}
is it possible to put the float which is entered into an array? that way i can chose what is printed out on the screen?
... unless anyone else has other ideas which i welcome :D