try this u can find out all prime number between 2 and any
number entered by user .i write code in c# language but
concept remain same in any language.
static void Main(string args)
int i=2, j, rem;
while (i <= 100)
for (j = 2; j < i; j++)
rem = i % j;
if (rem == 0)
if (i == j)
52.write a “Hello World” program in “c” without using a
53.Give a method to count the number of ones in a 32 bit number?
54.write a program that print itself even if the source file
55.Given an unsigned integer, find if the number is power of 2?
IS it possible to define a zero sized array in c.if it is
possible how can the elements of that array can be
accessed.array index starts from zero,if it is possible to
define zero sized array how can be its first element can be