Skip to content

Commit c1d0d70

Browse files
authored
Merge pull request #13063 from MicrosoftDocs/repo_sync_working_branch
Confirm merge from repo_sync_working_branch to main to sync with https://github.com/MicrosoftDocs/visualstudio-docs (branch main)
2 parents 3700447 + ca7b5c5 commit c1d0d70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/get-started/csharp/tutorial-console.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ Let's change the code to handle this error. In *Program.cs*, replace the code fo
395395
while (num2 == 0)
396396
{
397397
Console.WriteLine("Enter a non-zero divisor: ");
398-
num2 = Convert.ToInt32(Console.ReadLine());
398+
num2 = Convert.ToDouble(Console.ReadLine());
399399
}
400400
Console.WriteLine($"Your result: {num1} / {num2} = " + (num1 / num2));
401401
break;

0 commit comments

Comments
 (0)