Thread: Checking if integer is multiplicant of 3

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    132

    Checking if integer is multiplicant of 3

    How can I do this? I tried using the modulus % operator, but I dont know exactly how.
    Y3K Network http://www.y3knetwork.com
    Bringing the software of the future on the net.

  2. #2
    Kohatian3279
    Guest

    here

    if(x%3==0)
    do what ever u want;

  3. #3
    Registered User
    Join Date
    Jun 2002
    Posts
    132
    Coolness, I was so close
    Y3K Network http://www.y3knetwork.com
    Bringing the software of the future on the net.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. memory issue
    By t014y in forum C Programming
    Replies: 2
    Last Post: 02-21-2009, 12:37 AM
  2. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  3. Looking for constructive criticism
    By wd_kendrick in forum C Programming
    Replies: 16
    Last Post: 05-28-2008, 09:42 AM
  4. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  5. Problems about gcc installation
    By kevin_cat in forum Linux Programming
    Replies: 4
    Last Post: 08-09-2005, 09:05 AM