Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
using namespace std; int main() { // Create an array of strings string cars[5] = {"Volvo", "BMW", "Ford", "Mazda", "Tesla"}; // Loop through strings for (string car : cars) { cout << car << "\n"; } return 0; }
Volvo
BMW
Ford
Mazda
Tesla