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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!