Im not exactly the greatest with while loops

do you know what the code would be for this ?

Thanks a bunch,

Cheers,

J