10 lines
139 B
Awk
10 lines
139 B
Awk
function repeat( str, n, rep, i )
|
|
{
|
|
for( ; i<n; i++ )
|
|
rep = rep str
|
|
return rep
|
|
}
|
|
|
|
BEGIN {
|
|
print repeat( "ha", 5 )
|
|
}
|