33问答网
所有问题
#include <stdio.h> int main() { int i; scanf("%d/n",&i); printf("i = %d/n",i); return 0; }
运行compile、build后无法运行stop build咋回事谢谢大家
举报该问题
推荐答案 2015-07-09
程序没问题啊,就是\n是这样写的,输入语句不用写\n 你是不是在win7或者win8上用的vc6.0
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://33.wendadaohang.com/zd/R40W5R5B5WW0cdR5hR5.html
相似回答
#include
<
stdio.h
> int
main()
{int
i,
k=0; char c,sfjx='Y'; while...
答:
include
<
stdio.h
> int
main(){int
i,k=0;char c,sfjx='Y';while(sfjx=='Y'){puts("please input a mumber:\n");scanf("%d"
,&i);
getchar();puts("please choose a rule")
;scanf(
"%c",&c);switch(c){case'a':k=k+i;printf("%d",k);break;case'b':k=k-i;printf("%...
c语言奇数求和
答:
include
<
stdio.h
>int
main()
{int
i=0,n=0,tmp,sum=0
;scanf(
"%d"
,&n);
for(i=0;i<
n;i
++)
{scanf(
"%d",&tmp);if(tmp%2!=0){sum+=tmp;}}printf("%d",sum);return 0;}
...
# include
<math.
h
>
int
main()
{
int
n;
printf("enter n:\n...
答:
include
<
stdio.h
> bool prime
(int
n){
int
i,
t = n/2;for(i=2; i<=t; ++
i){
if ( n % i == 0 )return false;} return true;} void gotbaha(int n){ if ( n < 6 || n%2 ) return
;int
i, t=n/2;for ( i = 2; i <= t; ++
i ){
if( prime
(i)
&&...
大家正在搜
include iostream
c语言include stdio
int main(void)
int main(void)含义
c语言int main和main
includestdio
visual studio
int main和main的区别
void main和int的区别
相关问题
#include <stdio.h> int main() ...
#include<stdio.h> main() { int...
# include<stdio.h> int main(vo...
#include(stdio.h); int main() ...
#include<stdio.h> int main() {...
#include<stdio.h> int main() {...
#include <stdio.h> void main()...
为什么这个不能计算 #include"stdio.h" ma...