Computer Science: A Structured Programming Approach Using C, Third Edition
Computer Science: A Structured Programming Approach Using C, Third Edition
3rd Edition
ISBN: 9780534491321
Author: Behrouz A. Forouzan, Richard F. Gilberg
Publisher: Course Technology, Inc.
bartleby

Videos

Textbook Question
Book Icon
Chapter 6, Problem 33PS

Write a for loop that will produce each of following sequences:

a. 6, 8, 10, 12, ..., 66

b. 7, 9, 11, 13, ..., 67

c. The sum of the numbers between 1 and 15 inclusive

d. The sum of the odd numbers between 15 and 45 inclusive

e. The first 50 numbers in the series 1, 4, 7, 10, ... (calculate the total 1 + 4 + 7 + 10 + ...)

Blurred answer
Students have asked these similar questions
Write a for loop that prints out the integers 7 through 40, each on a new line using range (). Use while loops to print the multiplication tables of 2,3 and 4. The table must include the first 10 multiplications. (must be separate loops for each one)
Write a for loop that displays the following set of numbers: 0, 20, 40, 60, 80,…..1000 (Note there is a comma between the numbers but not the last one)explain please.
Write a for loop that iterates 6 times. Each iteration: Put userNum to output. Then, put "," to output. Then, assign userNum with userNum multiplied by 3. Ex: If input is 2, then output is: 2,6,18,54,162,486,
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
C++ Programming Tutorial 36 - Intro to Loops; Author: Caleb Curry;https://www.youtube.com/watch?v=M3o7Y0juEP0;License: Standard YouTube License, CC-BY