How to make a program to check if a number is a prime?
Prime number - a number can devide by itself or 1 so now we can iterate loop 2 to n/2 , if n is devide by any number from 2 to n...
11 months ago | 0
how to find out if a number is even or not
A givennumber is even or odd for this we use & operator. if any number is odd it must have right most bit 1. example: int i=5...
1 year ago | 0