标题:输出问题
只看楼主
zzt_428
Rank: 2
来 自:南京师范大学
等 级:论坛游民
威 望:2
帖 子:243
专家分:22
注 册:2008-7-6
 问题点数:0 回复次数:0 
输出问题
int a,b,c;
scanf("%d,%d",&a,&b);
c=a%b;
printf("a%b is %d.",c);

60,13 回车
output: a%b is %d.  显然这个结果错误的. 这个是为什么??
如果把printf语句换成printf("is %d.",c);结果就是对的. %b是什么意思?输出什么?  

改成 printf("a%b is ",c); 那么就输出 a%b is
搜索更多相关主题的帖子: printf 输出 output scanf 语句 
2008-08-09 11:44



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-227402-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.004816 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved