← Back to Printing
Question 78
Label Then Value
Label Then Value
Print two lines of output, each a label followed by a space and a value: the first line shows the label Total with a colon then the declared total, the second shows Count with a colon then the declared count. Pass the label text and the variable as two separate values in each print call so that print supplies the space. Input: none; the values are fixed in the code.
Expected Output:
Total: 42 Count: 7
= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
Printing
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.