Your program is to accept 3 inputs: a starting number, an ending number, and an increment. All of these are integers. Your program is to print the numbers from the starting number to the ending number inclusive, counting by the increment.

So for example, if the starting point is 5, the ending point is 30, and the increment is 5, your program is to print:
5 10 15 20 25 30

Do not print any numbers beyond the ending point!
The interface of your program must have the input in bold font; what the computer types is in normal font:

Starting point: 5
Ending point: 30
Increment: 5
5 10 15 20 25 30

As another example:
Starting point: 5

Ending point: 12
Increment: 2
5 7 9 11

There is to be one space between each number, and no space trailing the final number in the output.

Solution PreviewSolution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

#include <stdio.h>
#include <stdlib.h>
#include <term.h>

int main(int argc, char** argv) {
    int start;
    int end;
    int increment;
    int i;
    printf("\e[0mStarting point:\e[1m ");   
    scanf("%d", &start);...
$15.00 for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available C-Family Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats