QuestionAsk Questions?

Write a program that will print out the first 10 numbers, their squares and their cubes.

Write a program that displays the first 100 terms of the triangular sequence. This is the sequence that goes 1,3,6,10,15,21,... The rule is that you add on 2, then add on 3, then add on 4, etc.

Write a program that displays the first 20 powers of 2. Number and then the power.

The Fibbonacci sequence is obtained by adding together the two terms of a sequence to get the next term: 3 , 4 , 7 (because 3+4 = 7), 11, 18, etc. Write a program that allows you to input two numbers which are the starting values of a Fibonacci sequence and print out the first 20 terms.

Any of these would be helpful. Thank you in advance!

View Answers

Related Tutorials/Questions & Answers:

Advertisements