Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C# Question 3: Find the errors in the following code 1. using System; 2. namespace FinalExam 20. class Program 3. { 21. { 4. Class
C# Question 3: Find the errors in the following code
1. using System; 2. namespace FinalExam 20. class Program 3. \{ 21. \{ 4. Class FinalExam( 22. static void main(string[] args) 5. \{ 23. \{ 6. public static int time =120; 24. FinalExam m=new 7. string courseName=""; FinalExam(); 8. protected double marks =0.0 25. m.WritingExam(0; 9. const short roomNo; 26. Console.Writeline(m.marks); 10. public static void WritingExam() 11. \{ 27. 12. time--; 28. 13. courseName="OOP2"; 29. \} 14. } 30. 3 15. public void FinalExam0 16. \{ 17. roomNo=431; 18. } 19. } Line Number ErrorStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started