填空题

以下程序的功能是计算:s=1+12+123+1234+12345。请填空。 main() { int t=0,s=0,i; for(i=1;i<=5;i++){t=i+【 】; s=s+t;} printf("s=%d\n",s); }

【参考答案】

t*10
<上一题 目录 下一题>
热门 试题

填空题
以下程序运行后输入:3,abcde,则输出结果是【 】#include <string.h>move(char *str, int n){ char temp; int i;temp=str[n-1];for(i=n-1;i>0;i--) str[i]=str[i-1];str[0]=temp;}main( ){ char s[50]; int n, i, z;scanf( %d,%s ,&n,s);z=strlen(s);for(i=1; i<=n; i++= move(s, z);printf( %s n ,s);=
填空题
Windows窗口一般由标题栏、菜单栏、控制按钮等部分组成。为了移动窗口,则要用鼠标拖动【 】。
相关试题
  • 以下程序运行后的输出结果是【 】。main ...
  • 以下程序的输出结果是【 】。#include m...
  • 设有定义:FILE*fw;,请将以下打开文件的...
  • 在进行模块测试时,要为每个被测试的模块另...