225k views
0 votes
Write an algorithm and draw flowchart to print 30 terms in the following sequence

1,-2,3,-4,5,-6,7,-8,...........................upto 30 terms.

User Gterdem
by
7.3k points

2 Answers

4 votes

Answer:

Step-by-step explanation:

9,-10,11,-12,13,-14,15,-16,17,-18,19,-20,21,-22,23,-24,25,-26,

27,-28,29,-30

User Ammar Sani
by
7.9k points
3 votes

Answer:

9,-10,11,-12,13,-14,15,-16,17,-18,19,-20,21,-22,23,-24,25,-26,

27,-28,29,-30

Step-by-step explanation:

It comes as positive and then as a negative number and continues in the same format.

Hope it helps....

User Ragingcorgi
by
7.8k points