Hi,

I am trying to program a 5 second loop timer that resets back to 5 after reaching 0. I have tried but my code gets cannot loop back to 5?
Code:
#include <stdio.h>
#include <unistd.h>


int main()
{
    int start = 5;




    while(start > -1)
    {
      if (start != 0)
      {
        printf("%d\n",start);
        start--;
        sleep(1);
      }
      else
      {
        start = 5;
        continue;
      }




    }


    return(0);
}