请教,这里的循环结构是怎样的?

来源:4-4 分支结构之嵌套if-else语句

kevin317759

2021-01-24 20:57

#include<stdio.h>   main()   { int x,i; 
  for(i=1;i<=100;i++)   { x=i; 
  if(++x%2==0)   if(++x%3==0)   if(++x%7==0)   printf("%d",x);   } 
  printf("\n");   } 
The output of the program is


写回答 关注

1回答

  • 慕慕6465485
    2021-01-25 16:32:02

    c语言循环结构有三种,for、while、do while

    带三个表达式且展示了每个数组的过程,所以是经典的for循环?

C语言入门

C语言入门视频教程,带你进入编程世界的必修课-C语言

927304 学习 · 21537 问题

查看课程

相似问题