Write a program in Q Basic using For...Next loop to print the following sequence.
1 , 2 , 4 , 7 , 11.........upto 10th term
Attachments:
Answers
Answered by
2
Answer:
CLS
sum = 0
FOR i = 0 TO 9
number = 1
sum = sum + number
NEXT i
PRINT sum
END
Explanation:
0+1=1
1+1=2
2+2=4
3+4=7
4+7=11
5+11=16
6+16=22
7+22=29
8+29=37
9+37=46
hope it may help u please Mark it as brainliest
Answered by
0
Answer:
· Search This Blog ... 1,4,9,16, 25. CLS A=1. B=1. DO WHILE B<=5. PRINT A ^2. A=A+ ... PRINT A A=A-10. B=B+1. LOOP END 10,9,8,7,6,5,4,3,2,1 ...
Similar questions