Sunday, 26 October 2014

for লুপ প্র‍্যাকটিস 05:-Fibonacci Series

Fibonacci series: It's a series which every term will be sum of  previous two term and first two term is default which can be 0,1 0r 1,1. We take it as 1,1 in this problem. So the series is  1,1,2,3,5,8,13,21,................


Problem:-Write a c program which can in put a integer number and display the series  and sum till that term. Also display which number is situated in that term .







Solve:-








Output:-

Problem & solution:-02

Problem :- Suppose you bought some choclate. When you returning home you met some of your cousin & they took some choclate from you. But each of your cousin took double cocholate from previous one. Now write a program which can calculate how many choclate you can return home and how much choclate will need if choclate is'nt sufficient for all cousin. Input is number of choclate and cousin.





Solve:-









Output:-




Saturday, 25 October 2014

Problem & solution :-01

Problem:- Write a C program which can input an integer number and display all factor. Also display the summation of even and odd factor and their difference . as exmple, if input is 8 the output should be factor=1,2,4,8 even sum=14, odd sum=1 and difference is 13.


Solve:-


 







Output:-

for লুপ প্রাকটিস :-০4 Print Series & their sum upto n term part 3

problem 05:- 3+3^2+3^3+3^4+......+n
solve:-



 output:-










problem 6:-1+(1/3)+(1/3^2)+(1/3^3)
solve:-



output:-

for লুপ প্রাকটিস :-০4 Print Series & their sum upto n term part 2

Problem 03:- 1-2+3-4+5-6+............-n

solve:-




output:-











problem 04:- 1-3+5-7+9-11+......-n
Solve:-




output:-

for লুপ প্রাকটিস :-০4 Print Series & their sum upto n term

problem 1:-  1+2+3+4+5+......+n
solve:-

output:-




problem 2:-  5+10+15+20+.......+n




Output:-

for লুপ প্রাকটিস :০৩ Print perfect number

Perfect Number :-পারফেক্ট সংখ্যা হল এমন সংখ্যা যার সব ফ্যাক্টরের যোগফল সংখ্যাটির দ্বিগুন  | যেমন ৬ এর ফ্যাক্টর ১ ২ ৩ ৬ যাদের যোগফল ১২ অর্থ্যাৎ যা ৬ এর  দ্বিগুন |








Output










for লুপ প্রাকটিস :০২ Print Prime Number

Input a number & print is that prime or composite







Result







for লুপ প্রাকটিস :০১ Print odd & even number upto n term

Print even number upto n term,








Print odd number upto n term,