MCQs > IT & Programming > C# > int a = 5; for (int i = 0; i < 3; i++) { a = a - i; } What is the value of the variable a after the code runs?

C# MCQs

int a = 5; for (int i = 0; i < 3; i++) { a = a - i; } What is the value of the variable a after the code runs?

Answer

Correct Answer: 2

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it