I am using the command line to get input of 3 floats separated by spaces. e.g. "1.234 5.678 9.012".
I am currently using:
float xyz[3] = {0}; scanf("%f", xyz); print(%f %f %f, xyz[0], xyz[1], xyz[2]); However the output is "1.234000 0.000000 0.000000".
Expected output is "1.234000 5.678000 9.012000"
EDIT: I need to use floats instead of integers.