Varanasi-Software-Junction / JavaCodecamp

Java code repository of Varanasi Software Junction. Its public and free for use. Please star if you find it useful
MIT License
11 stars 5 forks source link

For loops #4

Open champaksworldcreate opened 3 years ago

champaksworldcreate commented 3 years ago
  1. 1,2,3,4,5,6,7,8,9,10
  2. 2,4,6,8,10
  3. 1,3,5,7,9
  4. 1,4,9,16,,,,81,100
  5. 2,6,12,20,,,90
  6. 1/1,1/2,1/3,1/4, 1/10
  7. Print the Fibonacci Sequence. First number is 0, second is 1, 0,1,1,2,3,5,8,13,21,34. all other numbers come by adding the previous 2.
  8. Print the Fibonacci Sequence in reverse given any 2 consecutive numbers. For example given 8 and 5 it should print 8,5,3,2,1,1,0.
  9. Print the table of a given number
  10. Change a given number to words 123 = One Two Three
thakurchandansingh commented 2 years ago

Fibonacci Numbers 0, 1, 1, 2, 3, 5 a=0 b=1 c=a+b a=b b=c c=a+b

repeat