- 2

I need some help here guys! Can you solve this for me please?

https://sololearn.com/coach/268/?ref=app

26th Dec 2020, 4:09 PM
ik@81
ik@81 - avatar
9 Answers
+ 7
ik@81 here's, try with this one: • https://code.sololearn.com/cqA7Wjs801D6/?ref=app but pay more attention, analyze the task and what you need to do..
27th Dec 2020, 5:34 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 8
ik@81 If you need help, you can post the code you're struggling with. Try to search for similar questions or answers before posting. Please do not ask someone else to do it for you.  • https://www.sololearn.com/post/75089/?ref=app
26th Dec 2020, 5:32 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 6
Nope.
26th Dec 2020, 4:09 PM
Arsenic
Arsenic - avatar
+ 4
ik@81 yes we can solve but before that you need to solve self.
26th Dec 2020, 4:17 PM
A͢J
A͢J - avatar
+ 1
thank you Danijel so much its work its great solution!
28th Dec 2020, 2:11 AM
ik@81
ik@81 - avatar
0
I have tried already , but I didnt got it right . I need a better solution to solve this! thanks guys!
26th Dec 2020, 7:31 PM
ik@81
ik@81 - avatar
0
#include <iostream> using namespace std; int main() { int purchaseAmount = 0; int totalPrice; //your code goes here do { cin >> totalPrice ; purchaseAmount = 225; cout << purchaseAmount << endl; purchaseAmount += totalPrice ; cin >> totalPrice ; purchaseAmount = 252; cout << purchaseAmount << endl; cin >> totalPrice ; purchaseAmount = 1039.5; cout << purchaseAmount << endl; purchaseAmount += totalPrice ; } while ( totalPrice < 15); return 0; } how to input output and what is the condition should I use ? please guys help me out ! im strugled for now! i am a new learner .
27th Dec 2020, 2:01 PM
ik@81
ik@81 - avatar