• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Stupid newbie question — determine if intege r is even or odd
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stupid newbie question — determine if intege r is even or odd


  • Subject: Stupid newbie question — determine if intege r is even or odd
  • From: Jan Van Boghout <email@hidden>
  • Date: Tue, 13 Aug 2002 23:57:30 +0200

Hi everybody,

I feel kind of embarrassed to ask this, but I looked for hours and still don't have a solution.

How do you determine whether an integer is odd or even? I tried messing around with the fact that an odd integer divided by 2 would not be able to be an integer again, but my attempts were unsuccesful :\ Any help is welcome!

Thanks,
Jan VB
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Stupid_newbie_question_determine_if_integer is even or odd
      • From: Steve Bird <email@hidden>
    • Re: =?WINDOWS-1252?Q?Stupid_newbie_que stion_=97_determine_if_intege r?= is even or odd
      • From: John Haager <email@hidden>
    • Re: Stupid newbie question ? determine if intege r is even or odd
      • From: "Clark S. Cox III" <email@hidden>
    • Re: Stupid newbie question — determine if in tege r is even or odd
      • From: "John C. Randolph" <email@hidden>
    • Re: Stupid newbie question ? determine if intege r is even or odd
      • From: Isaac Sherman <email@hidden>
    • Re: =?WINDOWS-1252?Q?Stupid_newbie_que stion_=97_determine_if_intege r?= is even or odd
      • From: Andrew Pinski <email@hidden>
    • Re: =?WINDOWS-1252?Q?Stupid_newbie_que stion_=97_determine_if_intege r?= is even or odd
      • From: Andrew Zamler-Carhart <email@hidden>
    • Re: =?WINDOWS-1252?Q?Stupid_newbie_que stion_=97_determine_if_intege r?= is even or odd
      • From: Terry Simons <email@hidden>
    • Re: Stupid newbie question ? determine if intege r is even or odd
      • From: David Remahl <email@hidden>
  • Prev by Date: NSThread with Distributed Objects
  • Next by Date: Re: Stupid newbie question ? determine if intege r is even or odd
  • Previous by thread: Re: NSThread with Distributed Objects
  • Next by thread: Re: Stupid newbie question ? determine if intege r is even or odd
  • Index(es):
    • Date
    • Thread