active inputs

Hello my friends,
I have 6 digital inputs connected to my arduino, then the principle it is to show the inputs which are in the state HIGH (example: the active inputs are: 1,2,5.)
the final message for example: " you have 3 active inputs: 1,2,5 "
I wish to have the sketch of this loop
thank you

It's usual on the forum for those who need help to post their code so far, explaining what is / not working properly.

Assuming you're brand new to Arduino, have you had a look at the tutorials? This one might be particularly useful.

othmane84:
Hello my friends,
I have 6 digital inputs connected to my arduino, then the principle it is to show the inputs which are in the state HIGH (example: the active inputs are: 1,2,5.)
the final message for example: " you have 3 active inputs: 1,2,5 "
I wish to have the sketch of this loop
thank you

Aside from wishing, what have you tried?

I wish to have the sketch of this loop

HINT : put the pin numbers in an array and iterate through it reading the state of each pin and print its number if you find it HIGH. Have you got pulldown resistors on the inputs ? If not then you may get spurious results.