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

Online now

Members online
477
Guests online
2,386
Total visitors
2,863

Forum statistics

Threads
2,277,876
Posts
28,979,409
Members
1,229,134
Latest member
laloy56
Back
Top