🔒 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
  • 559
    Views
  • 5
    Participants
Last reply from:
ManoyDodong

Trending Topics

Online now

Members online
1,209
Guests online
4,846
Total visitors
6,055

Forum statistics

Threads
2,328,834
Posts
29,244,830
Members
1,158,090
Latest member
arab
Back
Top