基于visual Studio2013解决C语言竞赛题之0603打印素数
题目
解决代码及点评
/*
功能:打印出3到1100之间的全部素数(判素数由函数实现 */ #include<stdio.h>
#include<stdlib.h>
#include<math.h> int judgPri(int); //判断参数是否为素数,是返回1,否返回0 void main()
{
for (int i = 3; i < 1100; i++){ //遍历3---1100
int flag = judgPri(i); // 判断是否素数
if (flag == 1)
printf("%-6d\n",i); // 如果是素数则打印
}
system("pause");
} int judgPri(int n){
int flag = 1;
if (n == 2 || n == 3){
return 1;
}
else{
for (int i = 2; i <= (int)sqrt((double)n); i++){
if (n%i == 0){
return 0; //如果因数跳出循环,返回0
}
}
}
return flag;
}
代码编译以及运行
由于资源上传太多,资源频道经常被锁定无法上传资源,同学们可以打开VS2013自己创建工程,步骤如下:
1)新建工程
2)选择工程
3)创建完工程如下图:
4)增加文件,右键点击项目
5)在弹出菜单里做以下选择
6)添加文件
7)拷贝代码与运行
程序运行结果
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqUAAAG6CAYAAAAxsD/hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAADJmSURBVHhe7d0J3Fx1fe/x35lMhgci26NknfbWqlQkIQFCZJE1QFAGtXWJcYFouLbe1lKWgmK13hcVxSpCtZ0uRlLERnt7421FUAgQXLCjrGFpqpfbctuEJEMSMQRmsk3P78z5T/5zctbnmXlOnPm80x8z57+cc2aevJqv/zNzHufv/v7brZ/+67+I8dCP7/efAQAAAP1xw41f9p+1OU/9bFPr0UcelJVf/UtxHEfOPmehnH7WIpk6dZo/BAAAAOiNZuMFefLxh+Ury5dLq9XqhFMvlF5zxaVy5JGj8ruXXS0vSsnrAAAAAPplxmEluf66T8i2bVu9YOqF0o9c+d/lY3/8aXnROcgfBgAAAPTXjEMny9VXflg+8/m/Eeeiiy5qnXLK6XLqBb/ldwMAAAATY+NPH5Gvfe3Wdij94+v+VHa0JvtdAAAAwMR47a9MlUvf/+52KP3yLX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2q495MsePOhf7PMPGhL1+HWNK+8PGxAmbH9yH6VP6qNtBUXPTyns+AACYeCaUZq0sxhRK4wJFWBAykvrMfvUxbqyhY+yKalP6POq8swYkc37B840qM8Z+tAXH2tumLW6+0nHBPt028wEAAMYqKpQq8zhe4/6NTmFhKKzNCPaZ0BQ2Pmo/cftPyxw3ynj3P1Hi3j/Vi/cKAAAMJ/OZ0oMOOshvya6n9ylduHChvwUAAABk05NQ+tpZh/rPAAAAgLEZdygFAAAA+qWnv9EJAAAAGA9CKQAAAHJHKAUAAEDuCKUAAADIHaEUAAAAuet8+x4AAADIQ+eWUP42AAAAkAOR/wINiHC0fXOMFgAAAABJRU5ErkJggg==" alt="" />
基于visual Studio2013解决C语言竞赛题之0603打印素数的更多相关文章
- 基于visual Studio2013解决C语言竞赛题之0601判断素数函数
题目 解决代码及点评 //编写一函数判断一个数是否为素数 #include<stdio.h> #include <stdlib.h> # ...
- 基于visual Studio2013解决C语言竞赛题之0507筛选素数
题目
- 基于visual Studio2013解决C语言竞赛题之0501挑选素数
题目
- 基于visual Studio2013解决C语言竞赛题之0808打印链表
题目
- 基于visual Studio2013解决C语言竞赛题之1048打印矩阵
题目 解决代码及点评 /* 48. 找规律填写N×N方阵.如N=8时, 其方阵为: */ #include <stdio.h> #include <stdlib.h& ...
- 基于visual Studio2013解决C语言竞赛题之1045打印成绩
题目 解决代码及点评 /* 功能:用记录来描述一个学生的成绩情况,内容包括:姓名.学号.数学成绩和PASCAL成绩. 要求对一个小组的10个学生的成绩进行统计处理: 1)计算学生的总 ...
- 基于visual Studio2013解决C语言竞赛题之1058打印数字
题目 解决代码及点评 /************************************************************************/ /* 58 ...
- 基于visual Studio2013解决C语言竞赛题之1057打印加数
题目 解决代码及点评 /* 功能: 已知N是正整数, 它可拆写成三个正整数N1.N2和N3之和的形式N=N1+N2+N3. 请编程序打印出满足上式的全部组合,并当N1.N2和N3中至 ...
- 基于visual Studio2013解决C语言竞赛题之1078打印日历
题目 解决代码及点评 /************************************************************************/ /* ...
随机推荐
- Kapit控件方法笔记
r.kapit.visualizer.renderers.DefaultItemRenderer //整个节点添加click处理函数对象类型 fr.kapit.visualizer.controls. ...
- hdu 4738 (双联通求桥)
2013 ACM/ICPC Asia Regional Hangzhou Online 题目大意:有n个岛,曹操在一些岛之间建了一些桥,每个桥上有一些士兵把守,周瑜只有一个炸弹只能炸掉一个桥,炸弹需要 ...
- Node.mysql
mysql为常用数据库,下面简单记录在nodejs中操作mysql数据库的简单实现. 环境: nodejs4.2.2 mysql5.7.12 win7 参考资料: npm mysql 代码 var m ...
- CSS找到 (div+css请讲)
CSS 定位和浮动 CSS 定位和浮动提供了一些特性,使用这些属性,你可以建立栏布局,的重叠布局的一部分,并有一些.也可多年来完成通常需要使用的多个表格能力完成的任务. 定位的基本思路是非常easy. ...
- Java设计模式模式观测(Observer Pattern)
Observer Pattern 设计模式通常用于.这是一个事件侦听器模型. 该模型有两个作用,一个是Subject, 有一个Observer.Subject 保存多个Observer参考,一旦一个特 ...
- Web打印组件jatoolsPrinter(转载)
应用web化,不论对开发商,还是对用户来说,实在是一种很经济的选择,因为基于web的应用,客户端的规则很简单,容易学习,容易维护,容易发布.但对程序员来说,因为浏览器的局限性,却要面对很多挑战.怎么样 ...
- Enze frist day
今天是我来到云和学院正式开班上课的第一天,我选择学习的科目是.net.因为.net我在学校的时候接触过一些,所以我想要更加深入的去学习.我觉得一个学生在学习上最怕的是没有遇到一位负责任的好老师,但幸运 ...
- MySQL 5.7.14 安装
http://www.cnblogs.com/zcGu/articles/5740936.html 因笔者个人需要需要在本机安装Mysql,先将安装过程记录如下,希望对他人有所参考. 一, 1, 进入 ...
- Nginx 之四: Nginx服务器的rewrite、全局变量、重定向和防盗链相关功能
一:Nginx 后端服务器组的配置: 1.upstream: 用于设置后端服务器组的主要指令,upstream类似于之前的server块或http块,用法如下: upstreame Myserver{ ...
- Python网络编程——处理套接字错误
在网络应用中,经常会遇到这种情况:一方尝试连接,但另一方由于网络媒介失效或者其他原因无法响应. Python的Socket库提供了一个方法,能通过socket.error异常优雅地处理套接字错误. 1 ...