โ Back to Printing
Question 249
Print a Number with an Explicit Plus Sign
Print a Number with an Explicit Plus Sign
The variable n holds the positive number 7. Print it with an explicit leading plus sign:
+7
Use a custom numeric format with separate sections for positive and negative values.Expected Output:
+7
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.