MCQs > IT & Programming > C# > What is the output of the following code snippet? decimal roundedValue1 = Math.Ceiling(-2.5m); decimal roundedValue2 = Math.Ceiling(2.5m); Console.WriteLine(roundedValue1); Console.WriteLine(roundedValue2);

C# MCQs

What is the output of the following code snippet? decimal roundedValue1 = Math.Ceiling(-2.5m); decimal roundedValue2 = Math.Ceiling(2.5m); Console.WriteLine(roundedValue1); Console.WriteLine(roundedValue2);

Answer

Correct Answer: -2 3

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