ane juga ikut2an narsis donk om,,,tpi kali ini ane pke for
output:
ketinggalan om >>
output :
Code:
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
system ("color 0A");
for (int ngapusi = 0; ngapusi <=18; ngapusi++)
{
cout<<setfill('*');
cout<<setw(ngapusi)<<" "<<"\a"<<endl;
}
system ("pause>nul");
return 0;
}output:
Code:
*
**
***
****
*****
******
*******
********
*********
**********
***********
************
*************
**************
***************
****************
*****************ketinggalan om >>
Code:
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
system ("color 0A");
for (int ngapusi = 0; ngapusi <=18; ngapusi++)
{
cout<<setfill('*');
cout<<setw(ngapusi)<<" "<<"\a"<<endl;
}
int y = 18;
for (int bosok = 0; bosok <= 18; bosok++)
{
cout<<setfill('*');
cout<<setw(y)<<" "<<"\a"<<endl;
y = y-1;
}
system ("pause>nul");
return 0;
}output :
Code:
*
**
***
****
*****
******
*******
********
*********
**********
***********
************
*************
**************
***************
****************
*****************
*****************
****************
***************
**************
*************
************
***********
**********
*********
********
*******
******
*****
****
***
**
*
gue homo, thanks




