Checking if integer is multiplicant of 3

This is a discussion on Checking if integer is multiplicant of 3 within the C++ Programming forums, part of the General Programming Boards category; How can I do this? I tried using the modulus % operator, but I dont know exactly how....

  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-20-2009, 11:37 PM
  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, 09:43 AM
  5. Problems about gcc installation
    By kevin_cat in forum Linux Programming
    Replies: 4
    Last Post: 08-09-2005, 09:05 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21