axyd icon

CS172 l1ex015

axyd | PRO | 02/11/16 02:38:51 PM UTC | 0 ⭐ | 631 👁️ | Never ⏰ | []
C++ |

350 B

|

None

|

0 👍

/

0 👎

#include <iostream>
#include <string>
using namespace std;
 
int main()
{
        string tr1 = "   *   \n";
        string tr2 = "  ***  \n";
        string tr3 = " ***** \n";
        string tr4 = "*******\n";
        string megatr = tr1 + tr2 + tr3 + tr4;
        cout << "####Lab 2, Exercise 15####\n\n";
        cout << "Let there be a triangle!!!\n\n";
        cout << megatr;
        cin.get();
 
}

Comments