基于visual Studio2013解决C语言竞赛题之0601判断素数函数

时间:2022-09-21 08:44:13








基于visual Studio2013解决C语言竞赛题之0601判断素数函数

题目

基于visual Studio2013解决C语言竞赛题之0601判断素数函数

解决代码及点评


//编写一函数判断一个数是否为素数
#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)新建工程

基于visual Studio2013解决C语言竞赛题之0601判断素数函数

2)选择工程

基于visual Studio2013解决C语言竞赛题之0601判断素数函数

3)创建完工程如下图:

基于visual Studio2013解决C语言竞赛题之0601判断素数函数

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

基于visual Studio2013解决C语言竞赛题之0601判断素数函数

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

基于visual Studio2013解决C语言竞赛题之0601判断素数函数

6)添加文件

基于visual Studio2013解决C语言竞赛题之0601判断素数函数

7)拷贝代码与运行

基于visual Studio2013解决C语言竞赛题之0601判断素数函数

程序运行结果

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqUAAAG6CAYAAAAxsD/hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACUDSURBVHhe7d0JvF1VfS/w/80kMyRKJuiztg5QpkAgMsggAYIaQOuIEzh8fPV1oIhFxWp9HyqKVYTqK22faIpa9b0+fa0KKlNQwaYiIIOl9vFaXksICaNMSUhy31777H2z78k+5557M6xUvt/45+y99lprr71PPjk/z7nD0HAhGk499dRqCwAAto4v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xPm8Fk6xq5lkUrtsy5b/t8nH3l3PjA+7qC4Fa01Z6PzdXjXmy36wVgi/v2310Xr37V8fHok513GLeF3XeaGv/rG9fGK059abm/Pa3hF08115ByXTO1dQyVAbXZXue/oq0cUvVI73QOd3qO9EhZsfrxoLvtOHoNvczaZdr4fs3oKae/LRb95ht71vGnvC5euvjVcVJX+7wFR8UOO+7YOudEa9ZJp8ahN90cd7Qc25xadfuPY/leczsfM2+jqq/lmgmd+/645sLPN+7DT+PLn1sWc+cfnOUatvTzMb4a/F5sH+tVSim1zSp9lDx521X9jT7b4xo62+kxVTP/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/5wvOENb4hFixbFMcccEwsWLIhjjz02NmzYUPUc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PnhzTpk0ra+rUqSOPdaXjEyGUAgAwsBQ6jzrqqJg3b15Z8+fPj0WLFsXZZ58dl156aUyaNLF4KZQCADCw9evXxw033FAG0iOPPDJe9apXxbvf/e44/fTTy8cNGzZUPcdHKAUAYGAplKZasmRJzJw5swynL3rRi2LBggVlIE3HJkIoBQCgr6GhoVGVwmeqj3zkI+XH+fvuu+9mBdJEKAUAoK8UPNuC6fDwcLz85S8vH9N+d5/xEEoBAOgrhdL0DUzdoTMF0XXr1m12IE2EUgAA+qoDabe6rRlG2/oNQigFAKCvtndJB6nxEEoBAOirVyhN6sfNJZQCANDXk08+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. 基于ZK构建统一配置中心的方案和实践

    背景: 近期使用Zk实现了一个简单的配置管理的小东西,在此开源出来,有兴趣的希望提出您的宝贵意见.如果恰巧您也使用或者接触过类似的东西, 也希望您可以分享下您觉得现在这个项目可以优化和改进的地方. 项 ...

  2. SVN版本更新后,upData工程之后,Xcode 工程文件打不开解决办法

    svn更新代码后,打开xcode工程文件,会出现  xxx..xcodeproj  cannot be opened becausethe project file cannot be parsed. ...

  3. Ubuntu系统启动过程详解

    作者:杨硕,华清远见嵌入式学院讲师. 一. Ubuntu的启动流程 ubuntu的启动流程和我们熟知的RedHat的启动方式有所区别. RedHat的启动过程如下图: 这是我们熟知的linux启动流程 ...

  4. 【转】ubuntu自动挂载硬盘方法

    首先建立挂载目录例如:sudo mkdir /movie #根目录下建立movie文件夹sudo mkdir /work   #根目录下建立work文件夹 然后查看硬盘信息sudo fdisk -l ...

  5. 从小白进阶ubuntu高手的必经之路—命令

    精选的十二个ubuntu下的命令,熟记于心,则能甩掉ubuntu小白标签,高手的伟岸形象焕然生发.一.管理员权限绝大部分情况下,命令的行为须要被赋予管理员权限才能执行.命令 sudo 作用:赋予当前命 ...

  6. 【 UVALive - 5095】Transportation(费用流)

    Description There are N cities, and M directed roads connecting them. Now you want to transport K un ...

  7. Kill 锁,1222:已超过了锁请求超时时段,

    应该是你的表体积很大,处理的时候费事,因为几乎所有数据库操作都需要加或多或少的锁,所以会超时.首先你可以使用select * from sys.sysprocesses where blocked&l ...

  8. &lbrack;LeetCode&rsqb;题解(python):016-3Sum Closest

    题目来源: https://leetcode.com/problems/3sum-closest/ 题意分析: 这道题目输入一个数组nums和一个数target,找出数组中三个数,使得他们的和最接近t ...

  9. VMware上安装ubuntu 13&period;04

    作者:viczzx 出处:http://www.cnblogs.com/zixuan-zhang 欢迎转载,也请保留这段声明.谢谢! 这两天打算在Linux环境下学Python语言,想换个高点的ubu ...

  10. C&num; 向程序新建的窗体中添加控件,控件需要先实例化,然后用controls&period;add添加到新的窗体中去

    C# 向程序新建的窗体中添加控件,控件需要先实例化,然后用controls.add添加到新的窗体中去 Form settingForm = new Form(); setForm deviceSet ...