🔒 Closed C# codes

Status
Not open for further replies.
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

About this Thread

  • 4
    Replies
  • 562
    Views
  • 5
    Participants
Last reply from:
ManoyDodong

Trending Topics

Online now

Members online
1,146
Guests online
8,091
Total visitors
9,237

Forum statistics

Threads
2,339,442
Posts
29,310,108
Members
1,121,095
Latest member
clifford755
Back
Top