How can I do this? I tried using the modulus % operator, but I dont know exactly how.
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....
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.
if(x%3==0)
do what ever u want;
Coolness, I was so close![]()
Y3K Network http://www.y3knetwork.com
Bringing the software of the future on the net.