1.

Write A Command To Print The Squares Of Numbers From 1 To 10 Using Awk Command?

Answer»

AWK 'BEGIN { for(i=1;i<=10;i++) {PRINT "SQUARE of",i,"is",i*i;}}'

awk 'BEGIN { for(i=1;i<=10;i++) {print "square of",i,"is",i*i;}}'



Discussion

No Comment Found