Sei sulla pagina 1di 3

 Write a C program to find a peculiar two digit number which is three times the

sum of its digits.

 Bacteria are known to multiply very rapidly. If a certain container contains just
one bacterium on the first day and there are twice as many on the next day. In this
manner the number of bacteria in the container doubles itself everyday. Assuming
that the container would be full on the 10th day with 13,312 bacteria, find the
number of bacteria that was initially in the container on the first day.

 Calculate the factorial of a number recursively. From that calculate the value of
COS(X) = 1 - X2/2! + X4 /4! - X6/ 6! +…….

 A number of “Cats” got together and decided to kill between them 999919 mice.
Every cat killed equal number of “mice”. Write a program to find number of cats.

 Consider the following number 45*45=2025; 20+25=45.Write a program to


generate number between 32 and 99 that satisfies the above property.

 Rita has a money pouch containing Rs.700. There are equal number of 25 paise
coins, 50 paise and one rupee coins. Write a C program to find how many of each
are there?

 Calculate the factorial of a number recursively and from that calculate the value
of ex=1+ (X1/1!) + (X2 /2!) + (X3/3!) + ……….

 There are some goats and ducks in a farm. There are 60 eyes and 86 foot in total.
Write a program to find number of goats and ducks in the farm.

 Write a C program to find a three digit number which is greater than the aggregate
of its third, tenth and the twelfth parts by 58.

 Write a C program to find a two digit number, the second digit of which is smaller
than its first digit by 4, and if the number was divided by the digit’s sum, the
quotient would be 7.

 Calculate the factorial of a number recursively and then write a program to find
the sum of series 1/2! +3!/4 +5/6! +7!/8 + 9/10! +………..n terms.

 Multiply a two digit number by another two digit number; the result should
contain the 4 digits of the multipliers. Eg: 15*93=1395.Write a program to
generate all the numbers satisfying the above property.

 Write a C program to find two whole numbers between 1 and 100, difference of
their squares is a cube and the difference of their cubes is a square. These are the
smallest possible numbers.
 Write a C program to split 34 parts into two parts such that 4/7 of one of the parts
equals 2/5 of the others?

 Write a program to divide 45 into 4 addable parts such that when 2 is added to the
first part, 2 is subtracted from the second part, 2 is multiplied to the third part and
fourth part is divided by 2 and all the four results should be the same number.

 220 and 284 are called as amicable numbers. Since the sum of proper divisors of
220 is equal to 284 and the sum of proper divisors of 284 is equal to 220. Write a
program to generate all amicable numbers between 1000 and 10000.

 Shuba works in the post office and she sells stamps. One day a man walked in and
kept seventy five paise on the counter and requested, ‘Please give me some 2
paise stamps, six times as many as 1 paise stamps, and for the rest of the amount
give me 5 paise stamps’. The bewildered Shuba thought for a few moments and
finally she handled over the exact fulfillment of the order to the man-with a smile.
Write a C program to find the solution for the fulfillment of the man's order.

 The product of three consecutive numbers when divided by each of them in turn,
the sum of the three quotients will be 74. Write a program to find these numbers.

 Consider a street containing 288 houses in total, numbered from 1 to 288 in order.
Write a C program to find a peculiar house number, such that number of houses
on each side will add up alike

 Consider the numbers 12 and 21. If we reverse one numbers (say 12), we can get
the other (ie.21). Calculate the squares of them 144 and 441 respectively. These
numbers are also the reverse of each others. Write a program to generate 2 set of
numbers satisfying this property.

 There are 1023 coins in total. Using these coins you should make minimum
number of packets and any of these packets should not contain equal no. of coins
like any other packets. These packets should satisfy any person’s requirement of
any amount of coin without splitting the packets. List the total no. of packets and
no. of coins in each packet.

 Write a C program to find a two digit number whose double is greater than its half
by 45.

 Write a C program to find a peculiar two digit number which is three times the
sum of its digits.

 Write a program to divide 45 into 4 addable parts such that when 2 is added to the
first part, 2 is subtracted from the second part, 2 is multiplied to the third part and
fourth part is divided by 2 and all the four results should be the same number.
 Write a program to split 1000 into 2 addable parts such that one part is a multiple
of 19 and another part is a multiple of 17.

 A number of “Cats” got together and decided to kill between them 999919 mice.
Every cat killed equal number of “mice”. Write a program to find number of cats.

 Consider the following number 45*45=2025; 20+25=45.Write a program to


generate number between 32 and 99 that satisfies the above property.

 Write a C program to find two numbers with the difference of 3 between them and
the difference of their square is 51.

 Write a program to generate the numbers that satisfy the following property. The
Multiplication of any 2 consecutive natural numbers should be equal to the
Multiplication of any 3 consecutive natural numbers. (Example: 2 X 3 = 1 X 2 X
3).

 Calculate the factorial of a number recursively. From that calculate the value of
COS(X) = 1 - X2/2! + X4 /4! - X6/ 6! +…….

 A ball was dropped from a height of 10m. Every time it re-bounced half of the
previous height. Write a program to calculate the total height of the ball re-
bounced, just after 10th bounce.

 Consider a street containing 288 houses in total, numbered from 1 to 288 in order.
Write a C program to find a peculiar house number, such that number of houses
on each side will add up alike.
 Shuba works in the post office and she sells stamps. One day a man walked in and
kept seventy five paise on the counter and requested, ‘Please give me some 2
paise stamps, six times as many as 1 paise stamps, and for the rest of the amount
give me 5 paise stamps’. The bewildered Shuba thought for a few moments and
finally she handled over the exact fulfillment of the order to the man-with a smile.
Write a C program to find the solution for the fulfillment of the man's order.

 Rita has a money pouch containing Rs.700. There are equal number of 25 paise
coins, 50 paise and one rupee coins. Write a C program to find how many of each
are there?

 Write a program to print Pascal triangle for ‘n’ rows.


E.g. For n=5, the triangle will be in the following form

1
1 1
1 2 1
1 3 3 1
1 4 6 4 1

Potrebbero piacerti anche