当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

(7)有以下程序#include <stdio.h>main(){ int x;scanf("%d",&x);if(x>15) printf("


(7)有以下程序

#include <stdio.h>

main()

{ int x;

scanf("%d",&x);

if(x>15) printf("%d",x-5);

if(x>10) printf("%d",x);

if(x>5) printf("%d ",x+5);

}

若程序运行时从键盘输入12<回车>,则输出结果为 【7】 。

参考答案
您可能感兴趣的试题
  • 有以下程序:include&lt;stdi0.h&gt; define S(x)(x)&quot;x&quot;2main() { int k一5,j=2; Dr

  • (9 )有以下程序#include &lt;stdio.h&gt;main (){ int i,j,a[][3]={1,2,3,4,5,6,7,8,9};for (i

  • (11 )有以下程序#include &lt;stdio.h&gt;main (){ int a[3][3]={{1,2,3},{4,5,6},{7,8,9}};int

  • (11 )有以下程序#include &lt;stdio.h&gt;main (){ int a[3][3]={{1,2,3},{4,5,6},{7,8,9}};int

  • 有以下程序#include &lt;stdio.h&gt;main(){ int arr[ ]={1,3,5,7,2,4,6,8},i,start; scanf("%d

  • 设文件test.txt中原已写入字符串Begin,执行以下程序后,文件中的内容为【 15 】 。#include &lt;stdi