Relative Content

Tag Archive for cscanf

Use scanf() to read n in a loop?

I must use scanf() to read each 2-digit hexadecimal value. Each 2-digit
hexadecimal number will be separated by a single space and a ‘n’ character (rather
than a space after the number) will indicate that the message is complete. Your program should scan through every value until either you have read in maxium number of inputs or you have reached to the end of line. The maxium number of inputs are 5.