基于visual Studio2013解决C语言竞赛题之0501挑选素数
题目
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAicAAAA2CAYAAAAcRTnKAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAmhSURBVHhe7d3rjt02DATgpC8e5MnbDpABBgNSN/uc9dnMBwi2JZKivfkhLNL057//+xERERHxEP/8uUZEREQ8Qg4nERER8Sg5nERERMSj5HASERERj5LDSURERDxKDicRERHxKDmcRERExKPkcBIRERGPksNJREREPMrjDyc/f/78c/c+79iz2mNl3y5mlnuSt9LP3e7Y8yv6du/u4VX7oe7uGJmtUxe3mn/V6T47eXe849XYnXy4o7fVGru9AXJO8yontVZ1vXbz6kpfO7ld7El/uz0//p+vxwu9u8WVPXc+NGuNchDT7avzK/d0mke+hudKl39i1M8K5l+tc9Xq/t03VV5nJYfu/gb+XrvfWeNHuadrgHVADO/dKB90j26/an51DnbnK1djR/lYW8UaWm/lfmYlFjG0Whe8drVXt7/u2Znl+d5U5bmuL7fSJ7Ge1l65r1Trsxz3qMMJmt91d/v8gLsfEnZyqtjq/RnjfXl+VQ+u5ul9Fdvln0K9mW4/7+Xu3lZx33fu/669rn7jlXyd4z2uHV/fqd/xmNU6K3N4XnVHHlR9QVWziqOujmKMX2mlxolqnwpjqj52e+3W75oHrO066Vkxxq80qtGtYd51NWD5cDJq5lXevafvt7v/SjxiHHJGe1c51MWwZmeUB74/63GOqrlTK7W6HqDqUddmGAusRSv5UO2/mrtDe+vcte/KXsQ9d3JIc/1e55TPz55B53C/S3NHtamagzvmV+bw7LB+mutW4xnnMd38iPcNVe8ep3Ozdahi1EoN1a3N9lE7sYD4Ga03imecx3TzgLWq52pOTQ8nutkk9FbVS6q7e+k+1OwDqpVYxugVfK6qw1jQdY2vcnfzNB5mtX3uxGqdqs+VnrpY53FVrU4Xu1Pj1Cv30Nq+z2itMovBuprV9vnquTLqAbr9VBWzOgd3zK/MVc+wuoearR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HRETE2Lf4zQkOBl91OPjKvSMiIr6jb/V3Tma633KwPtdHPuBzRUREfLSPOJxERETE3+Pb/YXYiIiI+Gw5nERERMSj5HASERERj5LDSURERDxKDicRERHxID9+/AcSnGyafOV0oQAAAABJRU5ErkJggg==" alt="" />
解决代码及点评
这道题练习数组的遍历
/************************************************************************/
/*
1.有一个正整数数组,包含N个元素,要求编程求出其中的素数之和以及所有素数的平均值。
*/
/************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
bool IsSuShu(int num)
{ if (num<2)
return false;
for (int i=2;i<=sqrt((double)num);i++)
{
if (num%i==0)
{
return false;
}
}
return true;
}
void main()
{ int num=0;
int sum=0;
const int N=10;
int arr[N]={0};
for (int i=0;i<N;i++)
{
arr[i]=rand()%10; // 获取随机数
printf("%3d",arr[i]);
if (IsSuShu(arr[i])) // 判断是否素数,如果是,则累加,并计数
{
num++; // 计数
sum+=arr[i]; // 累加
}
} printf("共有素数%d个 和为%d 平均数为%f",num,sum,sum/(num*1.0)); // 输出结果
system("pause");
}
代码下载及其运行
代码下载链接:
http://download.csdn.net/detail/yincheng01/6651895
解压密码为c.itcast.cn
下载解压后用VS2013打开工程文件
点击 “本地Windows调试器” 执行
程序运行结果
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqUAAAG6CAYAAAAxsD/hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACjySURBVHhe7d0JnF5lfS/wZ7LJIggo2aC919aqVJawRUBZZAtKcKnWihtuH1tqbxVQ3Kr1flAUqiitLW2v2Ijicturt1cFlS2oYFE22Wrt5fZykSQkhLAIJCHJ3POc9zyTMyfnXWYyM0+A7zf9877nOc92zjud/HxnJjM07eM/Gg41J153bvUMAAAmx7kXXFw96xgJpTGMDg0NhZccfUw4/KhFYfbsOWUHAACYKOvW/jrcfuuN4YsXXhiGh4fDcxceX7aXoTQG0l133S28691nhkfDrPIEAABMlnk7zwpnn/XRsGbN/eHIvzmtE0oX//Qvwof//JPh0aGnVd0AAGByzdtpZjjzjP8Sjvjr94Shk046afjQQw8Ph53we9VpAACYGit+eVO4+OKLOqH0z8/6i/DI8MzqFAAATI3n/8bs8I63vr4TSr/wD18Nv/jVquoUAABMjefvuXsZSqdVx2FIKaWUUkqpKa5k5J3SX95zX9UEAABT47l7PGv0l+//fdnq6hQAAEyN35n/zNGh9H8vv786BQDw5PDIw4+EX/7bf4Q1ax6uWibfrrvuFJ77vGeHHXfasTy2h84eunnOvN3GFkov/+evVc/G5reet0/4z8/93TBt2si3rwIATIlrf3RjWLDvb4fZc55ZtUy+lfeuDjffcmc47PADymN76Oyhmy1C6Z0r1lSn2g09cm/1rN20oaEwNG0oDA+H8ldGxYp+cNkV4cWLXhm2336H8hgAYKpc8YNrw+ITXxzuf+jRqmXy7bbzDuE73/1xOOb4w8pje+jsoZvfnrtr46fvY6jsUfstWNCz9tlvv7D3PvuGffbdN+xbPE/tpSKgts25zdV9V4S//tCnww/vazk32VVfe1vZR9v5Sa1V4Yd/dXr4pzvazimllFLjq/KNsymstvW21T2kH4HffFyda/tTnovd64/VmPSnOo416DUnI++U/sfKB6umdgc9d25YevXt4e+u/mWYNmNTmDZzOEybtTFML+qcVx8bdttt16pnxzGnfyNccd4fhE99+vxw+KJXhh12fHp1JlkZrj7/7PCD5dVh6cDwhk+9KfxudbTZreEfP3BpmH3GmeHI3aum0pZzLHjz58LvbznBYFZdFv7qMzeFfbdYZyJ1uZb62mEq9tFF8x6Ux98NKzpnq/s7+OvR/TVt0xm/8riteA1bddtvFM9dGG4un88Px9f63PGN94SLb+o8L807MZz27uPCs8qD7uNKd3w5fPiiG7bu4xGArXb5968JJ510xJS/Q/jtb/8wHLvoReXxoHu4dunScOO/XFcddXfAIS8Mhx11VHXUruseHnykOIpfzd4cBjuGiz9D4SdXxz38tGqLay0Mhx1xVLj26qvDjddt3lu5hyOPLL9C3smVna+QDw/HoNk53G2XHUftoZtnz37G2N4pTV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E4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAIDshFIAALITSgEAyE4oBQAgO6EUAICBTZ8+PcyaNausmTNnjjymiufHQygFAGBgMXS+6EUvCgsWLCjrwAMPDIsWLQqnnXZauOCCC8K0aeOLl0IpAAAD27hxY7jmmmvKQHrYYYeFV73qVeHUU08NJ598cvm4adOmqufYCKUAAAwshtJYS5YsCbNnzy7D6fOe97ywcOHCMpDGc+MhlAIA0NPQ0NCoiuEz1sc+9rHyy/l77bXXVgXSSCgFAKCnGDzbgunw8HB42cteVj7G42afsRBKAQDoKYbS+ANMzdAZg+iGDRu2OpBGQikAAD2lQNqU2uphtK3fIIRSAAB6anuXdJAaC6EUAICeuoXSKD1uLaEUAICeHn300XHVWAwtXrx4+MIlXwv3rx2umka77vJvhmOOOaY6AgCAsdlzzz3DL+55uDoabbfthsLb33Jy/1D6/D12qp4BAMD4bHUoBQCAyZJCqe8pBQAgO6EUAIDshFIAALITSgEAyE4oBQAgu5GfvgcAgBxG/kmo6hgAADII4f8Dy1jgmMzoxnMAAAAASUVORK5CYII=" alt="" />
基于visual Studio2013解决C语言竞赛题之0501挑选素数的更多相关文章
- 基于visual Studio2013解决C语言竞赛题之0603打印素数
题目
- 基于visual Studio2013解决C语言竞赛题之0601判断素数函数
题目 解决代码及点评 //编写一函数判断一个数是否为素数 #include<stdio.h> #include <stdlib.h> # ...
- 基于visual Studio2013解决C语言竞赛题之0507筛选素数
题目
- 基于visual Studio2013解决C语言竞赛题之0409 100以内素数
题目 解决代码及点评 在已经知道素数是怎么判断的基础上,增加循环,可以判断出100以内的素数 /******************************************* ...
- 基于visual Studio2013解决C语言竞赛题之0401阶乘
题目 解决代码及点评 这个是一道经典的教科书题目,基本上每本基础的c/c++语言教科书都会有这个题目 用来演示循环语句 #include <stdio.h> #include ...
- 基于visual Studio2013解决C语言竞赛题之0205位数求和
题目
- 基于visual Studio2013解决C语言竞赛题之0201温度转换
题目 解决代码及点评 #include <stdio.h> #include <stdlib.h> void main() { float f; float c; float ...
- 基于visual Studio2013解决C语言竞赛题之0408素数
题目 解决代码及点评 判断一个数是不是素数的方法,一般是看n是不是能被n以内的某个整数(1除外)整除 为了提高效率,这个整数范围一般缩小到n的平方根 如果在这个范围内的整数都不能整除,那么 ...
- 基于visual Studio2013解决C语言竞赛题之0407最大值最小值
题目 解决代码及点评 这道题考察循环和比较 /*********************************************************************** ...
随机推荐
- 转:说说angularjs中的$parse和$eval
说说AngularJS中的$parse和$eval AngularJS的初学者常常会对$parse和$eval两个内建服务感到有些困惑,今天我们就来说说AngularJS中的$parse和$eval. ...
- c++ bitset使用
A bitset is a special container class that is designed to store bits (elements with only two possibl ...
- 12个高矮不同的人,排成两排(catalan数)
问题描述: 12个高矮不同的人,排成两排,每排必须是从矮到高排列,而且第二排比对应的第一排的人高,问排列方式有多少种? 这个笔试题,很YD,因为把某个递归关系隐藏得很深. 问题分析: 我们先把这12个 ...
- JAVA ThreadPoolExecutor(转)
原文链接:http://blog.csdn.net/historyasamirror/article/details/5961368 基础 在我看来,java比C++的一个大好处就是提供了对多线程的支 ...
- 柯里化函数之Javascript
柯里化函数之Javascript 定义 依据定义来说,柯里化就是将一个接收"多个"參数的函数拆分成一个或者很多个接收"单一"參数的函数.定义看起来是比較抽象的. ...
- C语言实验——一元二次方程Ⅱ
C语言实验--一元二次方程Ⅱ Time Limit: 1 Sec Memory Limit: 64 MB Submit: 169 Solved: 131 [Submit][Status][Web ...
- HTTP协议是无状态协议,怎么理解?
Http是一个无状态协议,同一个会话的连续两个请求互相不了解,他们由最新实例化的环境进行解析,除了应用本身可能已经存储在全局对象中的全部信息外,该环境不保存与会话有关的不论什么信息. 自己的理解,在 ...
- GridView事件分析
GridView事件分析 (转) P1默认数据绑定过程 编号 事件名称 作用 E1 DataBinding 数据绑定之前触发,在这个事件之前(第一次生成GridView),GridView不存在行数据 ...
- 基于表单的身份验证(FBA)
https://technet.microsoft.com/zh-cn/library/ee806890(office.15).aspx http://www.tuicool.com/articles ...
- SQL 插入语句汇总
INSERT VALUES 插入一行或多行到目标表中 -- single row INSERT INTO Sales.MyOrders(custid, empid, orderdate, shipco ...