搜索
查看: 1682|回复: 5
打印 上一主题 下一主题

C语言一天一练--11.feb

[复制链接]
楼主
发表于 2013-2-12 14:35:33 | 显示全部楼层
第一种[mw_shl_code=c,true]#include <stdio.h>
int main()
{
        int i;
    for(i=1;i<=6;i++)
        {
            printf("abcdef\n");
    }
        return 0;
}
[/mw_shl_code]
第二种
[mw_shl_code=c,true]#include <stdio.h>
int main()
{
    int i;
    i=1;
    while(i<=6)
    {
                printf("abcdef\n");
        i=i+1;
    }
        return 0;
}
[/mw_shl_code]
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

广播台
特别关注
快速回复 返回顶部 返回列表