回覆列表
-
1 # 優雅小魚0r
-
2 # 寒來一暑往
#include<stdio.h>voidmain(){inti;for(i=5;i<=100;i++){if(i%5==0||i%7==0)printf("%d\n",i);}}
#include<stdio.h>voidmain(){inti;for(i=5;i<=100;i++){if(i%5==0||i%7==0)printf("%d\n",i);}}
#include<stdio.h>
int main(){
int i=1;
for(;i<200;i++){
if(i%3==0||i%5==0)
printf("%d",i);
}
return 0;
}
#include <stdio.h>
int main()
{
int a,b;
for(a=0,b=0;a<200,b<200;a+=3,b+=5)
printf("%3d,%3d\n",a,b);
}