在 8 位数码管上的任意 3 位循环显示以下数值: 0,14,28,42,56,70,84,98,112,126。

如何实现这一步骤(c语言基础不好)
在 8 位数码管上的任意 3 位循环显示标题内容的数字



```c
#include <stdio.h>

int main() {
  int values[] = {0, 14, 28, 42, 56, 70, 84, 98, 112, 126};
  int counter = 0;

  while (1) {
    // Display the current value
    printf("%d\n", values[counter]);
    // Increment the counter and wrap around if necessary
    counter = (counter + 1) % 10;
  }

  return 0;
}


```