
Repair print_pair so it prints count and total on one line, each with a format specifier that matches its type.
print_pair(3, 42)Expected result
3 42For your own tracking. Tests grade your code.
print_pair(0, -17)Expected result
0 -17print_pair(SIZE_MAX, LONG_MAX)Expected result
18446744073709551615 9223372036854775807Expected files
print_pair.cAllowed functions
printf
v0.40: Create exercises. Challenge the community.
Meet Studio →Repair print_pair so it prints count and total on one line, each with a format specifier that matches its type.
print_pair(3, 42)Expected result
3 42For your own tracking. Tests grade your code.
print_pair(0, -17)Expected result
0 -17print_pair(SIZE_MAX, LONG_MAX)Expected result
18446744073709551615 9223372036854775807Expected files
print_pair.cAllowed functions
printf
Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.