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

Trending Topics

Online now

Members online
1,035
Guests online
3,411
Total visitors
4,446

Forum statistics

Threads
2,290,786
Posts
29,066,660
Members
1,211,527
Latest member
jajaybear
Back
Top