Programming Logic

I need help creating a program to display the integers from input[0] through input[1]. That is, if input[0] contains 4 and input[1] contains 8, the display 4,5,6,7,8 (on separate lines).

  1. 👍 0
  2. 👎 0
  3. 👁 175

Respond to this Question

First Name

Your Response

Similar Questions

  1. science

    A machine has a mechanical advantage of 2. This means its output force is _____. a. 0.5 times greater than the input force b. 2 times smaller than the input force c. 2 times greater than the input force d. 2 times more efficient

  2. writting a program

    Speed of Sound. Sound travels through air as a result of collisions between the molecules in the air. The temperature of the air affects the speed of the molecules, which in turn affects the speed of sound. The velocity of sound

  3. C++

    // Program: name of program // Author: your name // Date Written: date you began writing the program /* Abstract: Brief description of the program */ Include in-line comments in the body of your program. You can convert

  4. programming

    A hotel’s occupancy rate is calculated as follows: Occupancy rate = number of rooms occupied total number of rooms Write a program that calculates the occupancy rate for each fl oor of a hotel. The program should start by asking

  1. computer science

    Class scores: Write a program that calculates the total grade for N classroom exercises as a percentage. The user should input the value for N followed by each of the N scores and totals. Calculate the overall percentage (sum of

  2. Is My Pseudocode Correct? - Programming

    I am supposed to make a pseudocode for a fat gram calculator. These are the instructions: Design a program that asks for the number of fat grams and calories in a food item. Validate the input as follows: - Make sure the number of

  3. Math

    8. The graph below was drawn with the output on the vertical axis and input on the horizontal axis. What does this graph indicate about the relationship between the input and the output? (1 point) (Can't display graph) Please help

  4. programming

    Example Develop a pseudocode algorithm for a program that accepts each of the average marks of 10 students in a class and computes the sum and the average mark of the class. The program should display the average mark of the

  1. math

    The weights and heights of six mathematics students are given in the following table: Weight (in pounds) Height (in centimeters) 165 172 123 157 212 183 175 178 165 163 147 167 In the statement, "Height is a function of weight,"

  2. Programming

    Design a program in pseudocode that calculates the amount of money a person would earn over a period of time if their salary is one penny the first day, and then doubles each day. The program should ask the user for the number of

  3. java

    Write a java application that finds the smallest of several integers. Prompt the user for the number of integers that will be input, then prompt the user for that number of integers. Evaluate the integers to determine the smallest

  4. computer science

    write a program that calculates a customer's monthly bill. it should input customer name, which package the customer has purchased, and how many hours were used. it should then create a bill that includes the input informtion and

You can view more similar questions or ask a new question.