repl.it
@ArlanPereira/

Flowchart Example 2

C++

No description

fork
loading
Files
  • main.cpp
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <iostream>
#include <string>
using namespace std;

int main() {
  cout <<"----------Begin Progtam---------" << endl;
  cout << "Pizza Menu" << endl;
  string storedData = "y";
  string dataEntered;
  cout << "Would you like to see the vegetarian option" << endl;
  cin >> dataEntered;
  if(dataEntered == storedData){
    cout << "Margherita\n" "Gardiniera"<< endl;
  }else{
    cout << "Margherita\n" "Ham and Pineapple\n" "Gardiniera\n" "Tuna and Olives"<< endl;
  }
  cout << "----------End Of Program----------";
}