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