you can use
the things in ~~ are where you put in your own things
vex::motor_group ~motorgroupname~ (~Motor~, ~Motor~);
and then
~motorgroupname~.spin(rev, armSpeedPCT, pct);
What is you problem? The code you post looks correct and should work. Is the program giving you an error message or is the code just not working as expected.
What @LAMMAZ said is an option you have for shortening you code is motor groups. They allow you to run multiple motors with one line of code, but is necessary.
Also to format your code properly you can do this…
```cpp
int yourCodeGoesHere;
```
The cpp tells it to highlight it as cpp code. It supports other languages too, and if left blank it will choose one for you.
The problem may be the motor, wire or port on the brain, instead of a software bug. Plug the non running motor in, if the light turn in then it is probably code, if it remains off, then it is a faulty motor (to test plug wire into another motor and check for the red light), a faulty wire, or fried brain port.(Simply change the assigned port to test)