0
Can any one explain the program to generate sequence of numbers(Line sequence & triangle sequence)the following clearly ?
output: line sequence : -3 4 -6 10 -18 34 -66 130 -258 514 -1024 and traingle seq: 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 6 6 6 6 6 6 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9
2 ответов
0
please give the code also as there are many ways to do it
0
using for loop and other control statements..,