问答详情
源自:4-4 分支结构之嵌套if-else语句

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

#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


提问者:kevin317759 2021-01-24 20:57

个回答

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

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

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