简单的C语言程序:求素数,输出乘法表,输出闰年

1.打印100~200之间的素数 #include<stdio.h> #include<math.h> int main() {     int a,b,c,d=0;//定义变量       for( a=101 ; a<=200 ; a=a+2 )//偶数不是素数,排除偶数,从101开始算起       { b = sqrt(a);//b是a开根号的数,b为int型       for( c=2
相关文章
相关标签/搜索