Thursday, May 19, 2016

SEGITIGA BINTANG C++ LAGI :D

Oke langsung saja, berikut source codenya: :)

#include <iostream>

using namespace std;

main()
{



int a,b;
char x ='*';
for (a=1; a<=4; a++)
{

    for ( b=1; b <=a; b++)

    cout <<x;
    cout<<endl;

}
}

dan hasilnya :)

No comments:

Post a Comment

Thank you for coming and read my blog, please leave suggestions and comments. :)