โ Back to Variables
Question 259
Convert an Int to a String
Convert an Int to a String
Declareint year = 2026. Convert it to astringusing.ToString(), store the result intext, then printtext: 2026
Expected Output:
2026
Topics:
Variables
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.