programming in c what am i doing wrong?

#include <stdio.h>

/* Your solution goes here */

void PrintShampooInstructions(int numCycles){

 if(numCycles < 1){

  printf("Too few.\n");

 }

 else if(numCycles > 4){

  printf("Too many.\n");

 }

 else{

  for(unsigned int i = 1; i <= numCycles; i++){

   printf("%d :",numCycles);

   printf("Lather and rinse.\n");

  }

 printf("Done.\n");

 }

}

int main(void) {

   int userCycles;

   scanf("%d", &userCycles);

   PrintShampooInstructions(userCycles);

   return 0;

}

Attachment image
There are no answers yet.
Be the first to answer this question.