1,255,953
clicked '
Ask Pex!
'
Sign In
Random Puzzle
Learn
APCS
New
C#
Visual Basic
F#
Do you understand what the code does? Click
Ask Pex!
or
Ask Code Contracts Verifier!
to find out.
using System; using System.Diagnostics.Contracts; [ContractVerification(true)] public class Program { // this method should return the absolute value of i, // can you fix it? // Ask Pex or the Code Contracts Verifier to spot issues public static int Puzzle(int i) { Contract.Ensures(Contract.Result<int>() >= 0); return i; } }
Permalink
Coding Duel Name:
Help
Community
Live Feed
Publications
About
© 2013 Microsoft - Pex v0.94 - .NET v4 -
Terms of Use
-
Privacy