---
# System prepended metadata

title: 12893 - Let's build a sequence
tags: [loop]

---

# 12893 - Let's build a sequence
>author: Utin
###### tags: `loop`

---

## Brief
See the code below

## Solution 0

```c=
#include <stdio.h>

int main(void) {
    int n, a, b, c;
    scanf("%d", &n);
    scanf("%d %d %d", &a, &b, &c);
    int delta = (c-b) - (b-a);
    int delta1 = b-a;
    for(int i=0; i<n; i++) {
        printf("%d", a);
        if(i != n-1) printf(" ");
        else printf("\n");
        a += delta1;
        delta1 += delta;
    }
}
// By Utin
```

## Reference