C Programming-Write an Efficient Method Check if a Number is Multiple of 3 -If sum of digits in a number is multiple of 3 then number is multiple of 3 e.g.,You have to get all decimal digits one by one, add them and then check if sum is multiple of 3.
c program to add two numbers
5 Articles
5
C Programming-Smallest power of 2 greater than or equal to n – Bit Algorithm – Write a function that, for a given no n, finds a number p which is greater
C Programming Draw a circle without floating point arithmetic – Mathematical Algorithms – Following program uses a simple concept Let the radius be r.
Add two numbers without using arithmetic operators – Bit Algorithm – Sum of two bits can be obtained by performing XOR (^) of the two bits.
C programming for Write an Efficient Method to Check if a Number is Multiple of 3 – Mathematical Algorithms – If sum of digits in a number is multiple of 3.