What's new

Closed C# codes

Status
Not open for further replies.

Barokie2001

Enthusiast
Joined
Nov 2, 2019
Posts
1
Reaction
1
Points
63
Baka may makakapag bigay po ng simple codes dyan para sa c# kaylangan lang po sa assignment salamat mga idol
 
C#:
Func<int, bool> isOdd = (i) => (i & 1) == 1;

            Console.Write("Enter Number: ");
            int num = int.Parse(Console.ReadLine());
            Console.WriteLine(isOdd(num) ? true : false);

oh ayan.. simple code :D
 
Status
Not open for further replies.

Similar threads

Back
Top