I am solving a Hackerrank question where the output is
A 25 27 50;B 35 37 75
C 75 78 80;D 99 88 76 
for input
A 25 27 50
B 35 37 75
C 75 78 80
D 99 88 76.
 I am using ORS to do the above task. But I don't know why runtime error is coming?
awk 'NR%2 == 1?ORS=";":ORS="\n"'
Error coming is awkNR: cmd. line:1: Possible syntax error
awkNR: cmd. line:1: Possible syntax error