in this program i want to print the serial number like that
1, 1, 2, 4, 7, 11, 18, 36, 65, ...
this is the explanation:
The first two terms are arbitrary (the second odd). From the third, if the previous term is odd, is obtained by adding the previous two terms, if even, summing the above three terms.
please send me the answer of code program in 3 hours.i thanks for your help!!!
Comments
Leave a comment