1、

#include <stdio.h>

int main(void)
{
    int i = 100;
    while (1)
    {
        printf("%d\n", i);
    }
    return 0;
}

 

2、

#include <stdio.h>

int main(void)
{
    int i = 10;
    for (; ;)
        printf("%d\n", i);
    return 0;
}

 

相关文章:

  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
  • 2022-03-05
  • 2022-12-23
  • 2021-10-04
  • 2021-04-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-28
  • 2022-12-23
  • 2021-09-23
  • 2022-12-23
  • 2021-11-14
相关资源
相似解决方案