#pragma config(Motor,  port2,           rightMotor,    tmotorNormal, openLoop)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

/*
  Project Title:
  Team Members:
  Date:
  Section:


  Task Description: Create a count-based while loop that turns a motor on for 5 seconds,
  then off for 5 seconds, 3 times.



  Pseudocode:
  while(less than 3 iterations of the loop)
  {
    turn on a motor
    wait for 5 seconds
    turn off a motor
    wait for 5 seconds
  }

*/

task main()
{                                     //Program begins, insert code within curly braces
  int count;
  count = 0;

  while(count < 3)
  {
   startMotor(rightMotor, 63);
   wait(5.0);
   stopMotor(rightMotor);
   wait(5.0);
   count = count + 1;
  }


}
