Double the Number
easyQuestion 248Read one integer from input and print double its value. Because Console.ReadLine() returns text, you must convert it to a number with int.Parse before you can do arithmetic. For an input of 6 your program should print 12. Make sure your answer works for zero and negative numbers too.
Expected output
12= newline. The output ends with a newline, so print one after the last line.
Hints2 available
Sign in to use hintsTopics
User Input
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · 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.