电脑 系统测试题1


    系统测试题1
    1功:键盘输入写字母赋c1求改写字母输出
    #include
    void main()
    {
    char c1c2
    ***********SPACE***********
    c1
    ***********SPACE***********
    c2
    printf(ccc1c2)
    }
    2题目:列程序功输入正整数判断否37整37整
    输出YES否输出NO请填空
    #include
    void main( )
    { int k
    ***********SPACE***********
    scanf (d)
    ***********SPACE***********
    if ()
    printf(YES\n)
    else
    printf (NO\n)
    }
    3题目:某等差数列第项a2公差d3面程序功前n(1≤n≤10)项中输出项4整者请填空
    #include
    void main()
    {
    int adsumni
    ***********SPACE***********
    a2 d3i1sum
    scanf(d&n)
    do{
    sum+a
    i++
    ***********SPACE***********

    ***********SPACE***********
    if()
    printf(d\nsum)
    }while(i }

    4题目:求100位数6够3整数
    #include
    void main()
    {
    int ij
    ***********SPACE***********
    for(i0i++)
    {
    ji*10+6
    ***********SPACE***********
    if()
    continue
    printf(d\tj)
    }
    }
    5题目:函数fun功:统计长整数n位出现数字123次数
    外部(全局)变量c1c2c3返回函数
    例:n=123114350时结果应该:c1=3 c2=1 c3=2
    #include
    int c1 c2 c3
    void fun(long n)
    {
    c1c2c30
    while(n)
    {
    ***********SPACE***********
    switch()
    {
    case 1
    ***********SPACE***********
    c1++
    case 2
    ***********SPACE***********
    c2++
    case 3
    c3++
    }
    n10
    }
    }
    main()
    {
    long n123114350L
    fun(n)
    printf(\nThe result \n)
    printf(nld c1d c2d c3d\nnc1c2c3)
    }
    6题目:印出1~1000中满足位数字十位数字百位数字相等三位数题输出111222333444555666777888999
    #include
    main()
    {
    int ig s b
    ***********SPACE***********
    for ( i<1000 i++)
    {
    ***********SPACE***********
    g
    s(i10)10
    ***********SPACE***********
    b()10
    if(gs && sb)
    printf(di)
    }
    7题目:键盘键盘输入3整数然找出数输出
    例:输入104131
    输出 三数104131数10
    #include
    #include
    main()
    {
    int a b c min
    printf(请输入三整数\n)
    ***********SPACE***********
    scanf(ddd)
    printf(三数ddd a b c)
    if (a > b) minb else mina
    ***********SPACE***********
    if () minc
    ***********SPACE***********
    printf(数 min)
    8定程序中程序功:键盘输入字符中统计数字字符
    数换行符结束循环请填空
    例输入:CADX2012JSJ0623
    输出:8


    #include
    void main()
    {
    int n0c
    cgetchar()
    ***********SPACE***********
    while()
    {
    ***********SPACE***********
    if()
    n++
    cgetchar()
    }
    printf(dn)
    }
    9题目:请输入100正整数aa百位十位位次放b位十位百位例:输入321输出结果:123
    #include
    #include
    main ()
    {
    int ab
    printf (请输入100正整数)
    ***********SPACE***********
    (d &a)
    ***********SPACE***********
    b()*100 + ((a10)10)*10 + (a100)10
    ***********SPACE***********
    printf (结果 \n b)
    }
    10题目:计算两正数数n m(m<1000)间数nm键盘输入
    例输入1100输出1100间数:5050
    #include
    #include
    main()
    {
    int inm
    long sum0
    printf(请输入两正整数:nm\n)
    ***********SPACE***********
    scanf(dd )
    ***********SPACE***********
    for(in i++)
    {
    ***********SPACE***********
    sum sum+
    }
    printf(dd间数:ld\n n m sum)
    }
    11题目:程序输入nn1正整数输出中素数
    输入:5 19 93 11 37 15 输出:19 11 37
    例示说明:先输入n5输入5正整数输出5整数中素数
    #include
    void main()
    {
    int n a i j ct
    scanf( d &n )
    ***********SPACE***********
    for ( i0 i++ )
    {
    ***********SPACE***********

    scanf( d &a )
    for( j2 j***********SPACE***********
    if ()
    ct++
    if ( ct0 )
    printf( d a )
    }
    printf( \n )
    }
    12定程序中程序功:键盘输入字符中统计数字字符数换行符结束循环请填空
    例: 输入:12ab34cd
    输出:4
    #include
    void main()
    {
    int n0c
    cgetchar()
    ***********SPACE***********
    while()
    {
    ***********SPACE***********
    if()
    n++
    cgetchar()
    }
    printf( d数字\nn)
    }
    13题目:求出 10 30 7 11 整时 7 11 整整数
    例:输出771114212228
    #include
    #include
    main()
    {
    int i
    ***********SPACE***********
    for(i<30 i++)
    {
    ***********SPACE***********
    if( (i70 i110) &&i770)
    {
    ***********SPACE***********
    (di)
    }
    }
    }
    14题目:印出1~1000中满足位数字立方等身数
    题输出164125216729
    #include
    main()
    {
    int i g
    ***********SPACE***********
    for ( i<1000 i++)
    {
    g i10
    ***********SPACE***********
    if ()
    ***********SPACE***********
    printf( i)
    }
    }
    15题目:键盘键盘输入3整数然找出数输出
    例:输入104131
    输出 三数104131数10
    #include
    #include

    main()
    {
    int a b c min
    printf(请输入三整数\n)
    ***********SPACE***********
    (ddd&a &b &c)
    printf(三数ddd a b c)
    ***********SPACE***********
    if () minb else mina
    if (min > c) minc
    ***********SPACE***********
    printf(数d )
    }

    16题目:键盘输入组整数条件表达式找出整数
    输入整数 0 时结束
    例输入 1 2 3 5 4 0 时输出max5
    #include
    #include
    main()
    {
    int num1
    int max 0
    printf(请输入组整数 \n)
    ***********SPACE***********
    while()
    {
    ***********SPACE***********
    scanf(d )
    max num>max num max
    }
    ***********SPACE***********
    (maxd\n max)
    }
    17题目:甲乙丙丁4时开始放鞭炮甲隔t1 s放次乙隔t2 s放次丙隔t3 s放次丁隔t4 s放次放n次函数fun功根形参炸响算次响声第次响声第0s
    例:t1=7t2=5t3=6t4=4n=10总听28次鞭炮声
    #include
    ***********SPACE***********
    #define OK(i t n) ((0) && (itint fun(int t1 int t2 int t3 int t4 int n)
    {
    int count t maxtt1
    if (maxt < t2) maxt t2
    if (maxt < t3) maxt t3
    if (maxt < t4) maxt t4
    count1 * count赋初值 *
    ***********SPACE***********
    for(t1 t< maxt*(n1) )
    {
    if(OK(t t1 n) || OK(t t2 n)|| OK(t t3 n) || OK(t t4 n) )
    count++
    }
    ***********SPACE***********
    return
    }
    main()
    {
    int t17 t25 t36 t44 n10 r
    r fun(t1 t2 t3 t4 n)
    printf(The sound d\n r)
    }
    18面程序求1+3+5+……+n
    #include
    main(){
    long int fs
    int ijn
    ***********SPACE***********

    scanf(d&n)
    ***********SPACE***********
    for(i1i f1
    ***********SPACE***********
    for(j1 j++)
    ***********SPACE***********

    ss+f
    }
    printf(ndsld\nns)
    }






    文档香网(httpswwwxiangdangnet)户传

    《香当网》用户分享的内容,不代表《香当网》观点或立场,请自行判断内容的真实性和可靠性!
    该内容是文档的文本内容,更好的格式请下载文档

    相关文档

    电脑 系统测试题5

    系统测试题51.输入某年某月某日,判断这一天是这一年的第几天?#include <stdio.h>main(){ int day,month,year,sum,leap; printf(“...

    4年前   
    695    0

    电脑 系统测试题3

    系统测试题31.从键盘键盘输入3个整数,然后找出最大的数并输出。 例如:输入“12,45,43“, 输出 “三个数是:12,45,43.最大数是:45.“。#i...

    4年前   
    560    0

    电脑 系统测试题2

    系统测试题21.功能:输入整数a和b,交换a和b后输出。#include <stdio.h>void main(){ int a,b,temp; printf(“输...

    4年前   
    764    0

    电脑 系统测试题4

    系统测试题41.算式:?2*7?=3848中缺少一个十位数和一个个位数。编程求出使该算式成立时的这两个数,并输出正确的算式。#include <stdio.h>#include <stdlib...

    4年前   
    638    0

    华科酒店电脑管理系统方案

     目 录 第一章 公司简介 2 1.1公司简介 2 1.2成功案例 2 第二章 华科酒店电脑管理系统 3 ...

    15年前   
    14710    0

    电脑及网络系统服务合同(二)

    电脑及网络系统服务合同(二)  甲方:_______________________?????????  乙方:_______________________  甲乙双方本着平等互利的原则,通...

    9年前   
    431    0

    教你用UltraISO安装电脑系统

    教你用UltraISO安装XP系统虽然现在的系统盘做的越来越傻瓜化,安装方法也非常多,但是仍然时常有朋友询问怎么安装系统,特别是没有刻录机或不想刻盘,又不懂硬盘安装的朋友,这里特别介绍一种用U...

    4个月前   
    130    0

    电脑及办公设备采购合同(1)

    电脑及办公设备采购合同 甲方: 乙方: 地址: ...

    9年前   
    15747    0

    信号与系统简答1

    11.425.什么是双口网络及网络函数?26.什么是谐振电路的选择性?选择性与通频带有什么关系?27.线性系统必须满足两特性是?28.试说明卷积积分的运算步骤。29.离散时间系统的系统函数H(...

    3年前   
    949    0

    《公共基础》预测试题「1」

    2011银行从业资格考试《公共基础》预测试题 一、单选题(单选题(共90题,每小题0.5分,共45分)以下各小题所给出的四个选项中,只有一项符合题目要求,请选择相应选项,不选、错选均不得分)...

    5年前   
    942    0

    电脑化管理信息系统业务需求报告

     Error! Reference source not found. 电脑化管理信息系统Error! Reference source not found. ...

    10年前   
    28898    0

    电脑化管理信息系统业务需求报告

    目录1 摘要 12 工程背景介绍 22.1 公司简介 22.2 组织机构 22.3 企业宗旨与经营规划 32.4 信息系统规划的目标 42.5 KPMG工作方法 53 信息系统的现状 73.1...

    2年前   
    303    0

    2017年电脑监控系统软件销售合同书

    电脑监控系统软件销售合同书  电脑监控系统软件销售合同书   合同号:(   )  甲方: ______________________   乙方:______________________...

    7年前   
    380    0

    关于电脑系统维护及保养服务合同

    关于电脑系统维护及保养服务合同  第一条 合同范围  本合同是关于_______科技有限公司(以下简称乙方)向__________(以下简称甲方)提供电脑系统维护及保养服务的合同。??  乙方...

    9年前   
    479    0

    幼升小面试测试题(1)(1)

    目录语文幼升小面试测试题1、自我介绍2、拼读练习3、常识性题目4、看图说话数学幼升小面试测题1、计算能力2、图形能力3、推理能力英语幼升小面试测试题1、 Part One: Greeting打...

    4年前   
    891    0

    薪酬系统的设计(1)

    薪资系统的设计(1) 薪资系统的设计   1.前言     中国人一向心口不合一,心中明明很在乎钱,口中却不愿提出,即便调薪时比别人只差个几百元,都可能将整个课搞得乌烟瘴气,使得士...

    13年前   
    6680    0

    电脑公司署假实习报告范文—实习报告(1)

    电脑公司署假实习报告范文—实习报告    很快的,署假又过来了,面对最后一年的校园生活,想着刚刚过去的最后一个署假,紧张沉默之后更多的是感慨,印在脑海里的每一个足迹都是那么的深,真的说不出是什...

    9年前   
    505    0

    电脑品牌大全

    电脑品牌大全比尔盖茨的电脑:配置品牌型号数量以前的价格现在的价格商家CPU  Intel Core 2 Extreme QX9770(黑盒)×1¥10800¥10800共34个商家主板  华硕...

    2年前   
    776    0

    电脑安装说明

       第一步,设置光启:   所谓光启,意思就是计算机在启动的时候首先读光驱,这样的话如果光驱中有具有光启功能的光盘就可以赶在硬盘启动之前读取出来(比如从光盘安装系统的时候)。   ...

    9年前   
    7513    0

    电脑教室方案

     中国最大的商务办公文档下载基地: http://www.word98.com/ ╔-------------------------------------------------...

    6年前   
    19831    0

    文档贡献者

    小***库

    贡献于2020-07-26

    下载需要 1 香币 [香币充值 ]
    亲,您也可以通过 分享原创文档 来获得香币奖励!
    下载文档

    该用户的其他文档