两道c语言难题(对我而言)

[复制链接]
查看11 | 回复3 | 2013-5-8 20:44:53 | 显示全部楼层 |阅读模式
#include #include int main(){
int n,i,j;
char c;
scanf("%d %c",&n,&c);
if(c'Z')
{
return 0;
}
for(i=-(n/2);in/2+abs(i))
{
putchar('\040');...
回复

使用道具 举报

千问 | 2013-5-8 20:44:53 | 显示全部楼层
1.#includeint main(){ int a,i,j,k,q; char b; while(scanf("%d %c",&a,&b)!=EOF)//注意空格 {for(i=0;ia/2)
q=a-1-q; ...
回复

使用道具 举报

千问 | 2013-5-8 20:44:53 | 显示全部楼层
#include using namespace std;int main(){int x,y;while(cin>>x>>y){if(x==0&&y==0){break;}else{for(int i=x;i=1){sum+=(te...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行