Per questo tipo di problemi, sono stati inventati gli array ... invece di usare sei variaibili diverse, utilizza un array di sei elementi

num(1 to 6)

e poi con una semplice for, tiri fuori i numeri come vuoi ...