AWK - Reverse order of fields in each line

awk '{ for (i=NF; i>0; i--) printf("%s ", $i); printf ("\n") }' file.txt