题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-09-27 15:17:01

[填空题]有以下程序段,当在消息框中输入8后,y的值为______。
x=InputBox("Enter an Integer")
x=CInt(x)
Select Case x
Case Is<=0
y=0
Case Is<=10
y=5+2*x
Case Is<=15
y=x-5
Case Is>15
y=0
End Select

更多"有以下程序段,当在消息框中输入8后,y的值为______。 x=In"的相关试题:

[填空题]以下程序段运行后消息框的输出结果为______。 s=“Access” Dim str As String For i=1 To Len(s) str=UCase(Mid(S,I,1))+str Next i MsgBox str
[填空题]下列程序段运行后消息框的输出结果为______。 s="Access" Dim Str As String For i=1 To Len(s) str=UCase(Mid(S,i,1) ) +str Next i MsgBox str
[填空题]下面程序段执行后消息框的输出结果是______。
a=12345
Do
a=a/10
b=a Mod 10
Loon While b>=3
MsgBox a
[填空题]下列程序段运行后消息框的输出结果为______。
s="Access"
Dim Str As String
For i=1 To Len(s)
str=UCase(Mid(S,i,1) ) +str
Next i
MsgBox str
[填空题]下面程序段执行后消息框的输出结果是______。
a=12345
Do
a=a/10
b=a Mod 10
Loop While b>=3
MsgBox a
[简答题]
以下是某C程序段,其功能为计算输入数字的阶乘。请仔细阅读程序并完成要求。
#include<stdio. h>
#include<stdlib. h>
int main( )
{
int i=0;/*i为计数器*/
int n;
int factorial=1;/*保存阶乘的结果*/
puts("*************************************"):
puts("*The program will compute *");
puts("*the factotial of an integer *");
puts("*************************************"):
puts("please input the number n:");
scanf("%d",&n);
if(n<0)/*判断输入的数是否大于或等于0*/
{
printf("please input an interger>=0. /n");
return 0;
}
if(n==0)/*0的阶乘是1*/
{
printf("factorial of 0 is 1./n");
return 0;
}
i=1;
while(i<=n)
{
factorial = factorial * i;
i++:
}
printf("factorial of % d is:%d. /n",n,factorial);
getch( );
return 0:
}
画出此程序主函数的控制流程图。

[简答题]以下是某C程序段,其功能为计算输入数字的阶乘。请仔细阅读程序并完成要求。
#include
#include
int main( )

int i = 0;/* i为计数器 */
int n;
int factorial = 1;/* 保存阶乘的结果 */
puts("*************************************");
puts("* The program will compute *");
puts("* the factotial of an integer *");
puts("*************************************");
puts("please input the number n:");
scanf("%d",&n);
if(n < 0)/*判断输入的数是否大于或等于0*/

printf("please input an interger >= 0./n");
return 0;

if(n==0)/* 0的阶乘是1 */

printf("factorial of 0 is 1./n");
return 0;

i = 1;
while(i <= n)

factorial = factorial * i;
i++;

printf("factorial of %d is:%d./n",n,factorial);
getch( );
return 0;

画出此程序主函数的控制流程图。
[简答题]以下是某C程序段,其功能为计算输入数字的阶乘。请仔细阅读程序并完成要求。
# incllade<stdiO.h>
# incllade<stdl ib.h>
int main( )

int i:0;/*i为计数器*/
int n:
int factorial=1;/*保存阶乘的结果*/
puts("*************************************"):
puts("* The program will compute*");
puts("* the fact。tial 0f an integer*");
puts("*************************************"):
puts("please input the number n:");
scanf("%d’,&n);
if(n<0)/*判断输入的数是否大于或等于0*/

printf("please input an interget>=0./n");
return 0:

if(n==0)/*0的阶乘是1*/

printf("fa(:tOrial of 0 is 1./n");
return 0:

i=1:
while(i<=n)

factorial:factorial * i:
i++:

printf("factorial of %d is:%d./n’,n,factorial);
getch( );
return 0:

出此程序主函数的控制流程图。
[简答题]以下是某C程序段,其功能为计算输入数字的阶乘。请仔细阅读程序并完成要求。
#include<stdio.h>
#include<stdlib.h>
int main( )

int i=0;/*i为计数器*/
int n;
int factorial=1;/*保存阶乘的结果*/
puts("*****************************************");
puts("*The program will compute*");
puts("*the factotial of an integer*");
puts("*****************************************");
puts("please input the number n:");
scanf("%d", &n);
if(n<0)/*判断输入的数是否大于或等于0*/

printf("please input an interger>=0./n");
return 0;

if(n==0)/*0的阶乘是1*/

printf("factorial of 0 is 1./n");
return 0;

i=1;
while(i<=n)

factorial= factorial * i;
i++;

printf("factorial of %d is: %d./n", n, factorial);
getch( );
return 0;

画出此程序主函数的控制流程图。
[填空题]下面程序段执行后消息框的输出结果是______。
a=12345
Do
a=a|10
b=a Mod 10
Loop While b>=3
MsgBox a

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

截图扫码使用小程序[完全免费查看答案]
请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码