题目

解决代码及点评


//编写一函数判断一个数是否为素数
#include<stdio.h>
#include <stdlib.h>
#include <math.h>
void f61(int a )
{
 if (a==0)
 {
  printf("%d不是素数!",a);
 }
 else if (a==1)
 {
  printf("%d不是素数!",a);
 }
 else
 {
  int flag=1;
  for (int i=2;i<=sqrt((double)a);i++)
  {
   
   if (a%i==0)
   {
    flag=0;
    break;
   }
  }
  if (flag==1)
  {
   printf("%d是素数!",a);
  }
  else
   printf("%d不是素数!",a);
 }
}
void main()
{
 int a;
 scanf_s("%d",&a);
 f61(a);
 system("pause");
}

代码编译以及运行

由于资源上传太多,资源频道经常被锁定无法上传资源,同学们可以打开VS2013自己创建工程,步骤如下:

1)新建工程

2)选择工程

3)创建完工程如下图:

4)增加文件,右键点击项目

5)在弹出菜单里做以下选择

6)添加文件

7)拷贝代码与运行

程序运行结果

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqUAAAG6CAYAAAAxsD/hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACUDSURBVHhe7d0JvF1VfS/w/80kMyRKJuiztg5QpkAgMsggAYIaQOuIEzh8fPV1oIhFxWp9HyqKVYTqK22faIpa9b0+fa0KKlNQwaYiIIOl9vFaXksICaNMSUhy31777H2z78k+5557M6xUvt/45+y99lprr71PPjk/z7nD0HAhGk499dRqCwAAto4vfvGvqq2OkVCawujQ0FC89PiFcfRxi2LmzFllBwAA2FLWrH487rz95vj8ZZdFiqF1OC1DaQqk06fPiN8+69x4MqaVBwAAYGuZs9u0uOD8D8fDDz9UBtMylJ522mnxwT/6WDw59KyqGwAAbF1zdp0a557zu3H55Uti6JRTThk+4oij48iTf7M6DAAA28aKn98SX/7y5Z1Q+kfn/0k8MTy1OgQAANvGPr8yM975tjd2QunnvvDXcde/r6oOAQDAtrHP3nuWoXRStR9DSimllFJKbeOqjbxT+vN7H6iaAABg23jhXs8Z/fH9Py9/sDoEAADbxgvmPnt0KP0/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/pTGdj95Twuz07bR1+lV905+qofhv57Har9vKj/XTdtsaWqo28k7pqie73859Brntc3HWX6ZfnfXieOdn3xkHdFq3jc099/1XxifO/3rUnxbvddr5ce6Js6u9Zxj3AoAu1151Yxx6yD4xZ862+vww4r77VsZNN98Vx594ZLlvDZ019LLnTlNGf3z/wJPrq0MAAL8cHn/syfj7H90STz217X7N6I477hCHH3Fw7LJr50sXraH/l3A+Z6fJo0Ppg0/1+TmjAACwFTx7x0mjv6a0/CIApZRSSimltmVVRt4pfWj1pt99BQAAW9OMHYY6H98vXrx4+LIlX+kZSpdd/fVqCwAAxu+MM86Iu+59rNobLYXSd5x5+mChdNmy9N3hAAAwPuedd17svffeWy6UXnrppVULAADPBKtXr45Vq1bFlClTYtq0aeWvD21KP2d0eHh41M8bTeqfQZrGr1mzZqBQOnpmAADIQCgFACA7oRQAgOwmHEqXLl1aFgAAbK4JhVJhFACALWncoVQgBQAgmTx5cvld+elxc40rlNaB9LjjjisfAQB4ZkpBNP2IqMMPP7x83NxgOnAoFUgBAEhSAE217777xg477BDvete7NjuYTujj++ZH+D7OBwB45qgD6f777x/77bdfnHDCCXHwwQfHJZdcslnBdOBQmt4hbVbNO6cAAM8cKXSeeeaZ8brXvS5e85rXxGGHHVaG0yOOOCKuv/76TX7r06AmNgoAgGek9evXx5IlS+LDH/5wvOENb4hFixbFMcccEwsWLIhjjz02NmzYUPUcnwmFUh/fAwA8M6VQunbt2rKefvrpkce60vGJmFAo7fVRPgAATISP7wEAyE4oBQAgu+0ylNY/dqpfjcd4+ye9xkxkri1l0HNvibX36zvee7Clzlsbq8/mrn1zxwMA47dFQ2l6wR5v9dL9davN6qfXOXq1N7W1Jb3aexlv/9pExw0q3bvNOUcaW4/vNU/dp1n92re2bXUeAGDzDC1evHj4siVfiYdWD1dNoy27+uuxbNmyuPTSS6uWiUnhYKxAWRur73jmSiZy7u7H2iBzjed83Zpj0/ZY2s7T7/yDrq3u172GQcYmvc4z1vmb52uev20tSfdc3fOPtd+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NJZQCANDXk08+OaEaj6HFixcPX7bkK/HQ6uGqabRlV389Fi5cWO0BAMD47L333nHXvY9Ve6PN2GEo3nHm6WOH0n322rXaAgCAidnsUAoAAFtLHUp9TSkAANkJpQAAZCeUAgCQnVAKAEB2QikAANmNfPc9AADkMPIjoap9AADIIOL/AyjHPTPmFkSjAAAAAElFTkSuQmCC" alt="" />





基于visual Studio2013解决C语言竞赛题之0601判断素数函数的更多相关文章

  1. 基于visual Studio2013解决C语言竞赛题之0603打印素数

     题目

  2. 基于visual Studio2013解决C语言竞赛题之0507筛选素数

     题目

  3. 基于visual Studio2013解决C语言竞赛题之0501挑选素数

        题目

  4. 基于visual Studio2013解决C语言竞赛题之1026判断排序

          题目 解决代码及点评 /********************************************************************** ...

  5. 基于visual Studio2013解决C语言竞赛题之1023判断排序

         题目 解决代码及点评 /* 23. 有10个两位整数,把这些数作以下变化,如果它是素数, 则把它乘以2,若它是偶数则除以2,其余的数减1, 请将变化后的10个数按从小到大 ...

  6. 基于visual Studio2013解决C语言竞赛题之0409 100以内素数

       题目 解决代码及点评 在已经知道素数是怎么判断的基础上,增加循环,可以判断出100以内的素数 /******************************************* ...

  7. 基于visual Studio2013解决C语言竞赛题之0307函数求值

      题目 解决代码及点评 这又是个条件函数,但是这个函数无法用switch来解决,因为switch只能用于和某条件相等情况下,而这个函数的范围是无穷的 遇到这种问题,我们还是需要用复合的if语 ...

  8. 基于visual Studio2013解决C语言竞赛题之0610冒泡排序函数

      题目

  9. 基于visual Studio2013解决C语言竞赛题之0608水仙花函数

     题目 解决代码及点评 /* 功能:写一函数判断某数是否"水仙花数",所谓"水仙花数"是指一个三位数, 其各位数字立方和等于该数本身. */ #includ ...

随机推荐

  1. 在SQL2005中部署CLR 程序集

    原文 在SQL2005中部署CLR 程序集 有关于CLR函数的用途和用法,请了解 SQL Server CLR 极速入门,启用.设计.部署.运行 http://www.yongfa365.com/It ...

  2. Spring Boot使用Druid和监控配置

    Spring Boot默认的数据源是:org.apache.tomcat.jdbc.pool.DataSource 整体步骤: (1)    --   Druid简单介绍,具体看官网: (2)     ...

  3. 宣布正式发布 Windows Azure 多重身份验证

    身份和访问管理是安全之锚,是企业 IT 部门的首要任务.它是随时随地向员工.合作伙伴和客户提供访问的关键所在.今天,我们非常高兴地宣布正式发布 Windows Azure 多重身份验证,从而为 IT ...

  4. 基于Visual C++2013拆解世界五百强面试题--题8-数组的排序和查找

    用三种方法实现对一个数组的排序,并设计一个函数实现数的查找,要求时间越短越好,空间占用越少越好. 对数组排序的方法很多,我们选比较常用和容易的三种排序,直接插入排序,冒泡排序和快速排序. 直接插入排序 ...

  5. maven 添加自己的包

    mvn install:install-file -Dfile=d:/flea.jar -DgroupId=com.flea.bussiness -DartifactId=flea -Dversion ...

  6. 开始QT+OpenCV学问

    最近一个月.由于超声造影软件工具做.因此,开始接触OpenCV.使用OpenCV的话.除了图像处理,其它功能都非常弱.所以又開始学习MFC. 从原先的.net C#编程环境一下变成MFC还真有点不习惯 ...

  7. sass基本语法

    sass是一种基于ruby语言开发的CSS预处理器.它可以使用变量,嵌套,混入,继承,运算,函数等编程语言具有的特性进行CSS的开发,使得CSS的开发变得简单粗暴清晰可维护. sass有两种后缀文件格 ...

  8. MySQL的字段设计

    1.尽量使用数字,因为文本占空间,不利于查询(针对有限种类文本)

  9. 使用IDENTITY列属性和Sequence对象

    使用IDENTITY列属性 1. 建立表 Sales.MyOrders USE TSQL2012; IF OBJECT_ID(N'Sales.MyOrders', N'U') IS NOT NULL ...

  10. Hive环境搭建心得(Ubuntu)

    Hive是什么? 基于Hadoop的数据查询工具,可以使用类SQL进行数据查询. Hadoop安装 参考了Hadoop安装 注意到etc/hadoop/hadoop-env.sh里设置JAVA_HOM ...