第十六周 复习 问题 B: 按要求输出

来源:互联网 发布:windows热键设置 编辑:程序博客网 时间:2024/06/06 05:42
问题及代码:
/**Copyright (c) 2014,烟台大学计算机学院*ALL right reserved*文件名: A+B Problem*作者;童宇*完成日期:2014年12月5日*版本号v1.0*问题描述:编写一个C程序,输出以下信息: **************************          Very    Good! ***************************输入描述:Two integer a,b (0<=a,b<=10)*程序输出:Output a+b*/#include <iostream> using namespace std; int main(){    int i;    for (i=0; i<26; i++)    {        cout<<"*";    }    cout<<endl;    for(i=0; i<9; i++)    {        cout<<" ";    }    cout<<"Very    Good!"<<endl;    for (i=0; i<26; i++)    {        cout<<"*";    }    return 0;}



运行结果:


0 0
原创粉丝点击