When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
28 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
case package1:
cout << "\nHow many gigabytes of data were used? ";
cin >> gigabytesused;
cout << endl;
if (gigabytesused < 0)
{
cout << "Error.. invalid gigabytes entered. Try again.\n";
}
{
if (gigabytesused > 4)
cout << "The total amount due is $" << fixed << setprecision(2) << priceA + (gigabytesused - 4) * 10 << endl;
}
else {
cout << "The total amount due is $" << fixed << setprecision(2) << priceA << endl;
break;
}
so im sure the brackets are wrong
im getting an error in regard to it
I think you got an extra curly brace under the first if statement
if (gigabytesused < 0)
{
cout << "Error.. invalid gigabytes entered. Try again.\n";
}
{ // extra opening curly brace here
r u there
Sorry I had to go to sleep! Hope you resolved your issue.
I don’t understand what you mean by this
the awnser was already given to you
Thank you and let us know if you have any more questions!
This thread is now set to auto-hide after an hour of inactivity
cause you had a question, someone gave you the awnser, I confirmed that awnser
Message is already solved
the thread is already closed xD
ur annoying bro lol
okay?
@tiny imp
Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.
!solved
Thank you and let us know if you have any more questions!
This thread is now set to auto-hide after an hour of inactivity
😂