i want to repeat choosing a color until i press n when the program ask me if i want to keep choosing
PHP Code
<?php
#include <stdio.h>
int main(){
int color ;
char rep[10];
printf(" donner le color 1/red 2/blue 3/green \n");
scanf("%d",&color);
do{
switch(color) {
case 1 : printf("red");
break;
case 2 : printf("blue");
break;
case 3 : printf("green");
break;
default : printf("you didn't chose anything'");
}
printf("\n do you want to continue chosing ? \n");
scanf("%s",&rep);
}while(rep == "y");
}
Writeln('Give me a Target >');
![[Image: giphy.gif]](https://media.giphy.com/media/1n6CecAWjqgaa0fv0K/giphy.gif)

