Question: C# 3- Find five errors, syntax or logical, in the following C# code that is supposed to repeatedly read two numbers and add them. int
C#
3- Find five errors, syntax or logical, in the following C# code that is supposed to repeatedly read two numbers and add them. int num1, num2; char again; while (again == y || Y) Console.WriteLine(Enter an integer: ); num1 = Console.ReadLine(); Console.WriteLine(Enter another integer: ); num2 = Console.ReadLine(); Console.WriteLine(Their sum is {0}, (num1+num2)); Console.WriteLine(Do you want to do this again? (y for yes, n for no) ; again = Console.ReadLine();
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
