2, 3, 4, 6, 6, 9, 842, 10, 15, 12, 18. How to write this sequence in a C program?
Added by Heather T.
Step 1
First, we need to declare an array to store the sequence of numbers. We can do this by writing: int sequence[] = {2,3,4,6,6,9,842,10,15,12,18}; Show more…
Show all steps
Your feedback will help us improve your experience
Pritesh Ranjan and 81 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Write an algorithm to produce the first 15 numbers of this series: 1,1,2,3,5,8,13,21?
Eric C.
1 1 4 1 4 9 1 4 9 16 1 4 9 16 25 Write a C++ program to generate the above output.
Christopher L.
write a program that uses a for loop to print the numbers 8,11,14,17,20,...,83,86,89
James K.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD