+ 1

How to use print recipe of you sale with all array??

I need print receipt of the item that the users input and show the total after the I need to create a option if the user need to print receipt y/n If N then will skip and come to next but if is Y then will show that the users type the. How many time will the barcode name and price and finally the total as well.. https://code.sololearn.com/cDRwy1JHzuAe/?ref=app https://code.sololearn.com/c0o9lvbsN0KM/?ref=app

15th Dec 2019, 11:27 PM
Shofi Uddin
1 Answer
+ 2
I don't know if I understood your question correctly. Try my code for yourself. #include <iostream> using namespace std; int main() { // there u have to declare your array string recipe[4] = {"Carrot", "Onion", "Salt", "Water"}; for(int i = 0; i < 4; i++) { cout << recipe[i] << "\n"; } }
16th Dec 2019, 1:13 AM
Kacper BÄ…k
Kacper BÄ…k - avatar