Run ❯
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
using namespace std; int main() { string cars[5] = {"Volvo", "BMW", "Ford", "Mazda", "Tesla"}; for (int i = 0; i < 5; i++) { cout << i << " = " << cars[i] << "\n"; } return 0; }
0 = Volvo
1 = BMW
2 = Ford
3 = Mazda
4 = Tesla