Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

My awesome C++ triangle

Name: GOD_HATES_THE_JEWS 2012-02-18 10:49

//Homework 2, question 5

#include <iostream>
using namespace std;

int main(void)
{
 int n;
 int r, c;

 cout << "Enter a number: ";
 cin >> n;
 
 n = 2 * n + 2;
 
 for (r = 1; r <=n; r++, cout << endl)
     for (c = 1; c <=n; c++)
         cout << (r==1 || r==n || c==1 || c==n
              || r >= c || (r+c < n+1) ? ' ' : '*');

 return 0;  
}

Name: Anonymous 2012-02-20 19:07

>>46
>>47
Kodak-san, why do you samefag so much to try and make yourself seem anymore better than the next anonymous faggot on this board?


If anything you just make yourself look like a toilet scrubber who does nothing but sit on this board attempting to make fun of other people while failing to provide a single drop of evidence for your own success.

Your trolling is getting beyond ridiculously and I've quite had it with you and your java codemonkey manners.

With that being said, I have reported you. Hopefully moot decides to purge this board of shitposters like you that have the mental capacity of a 2 year old.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List