MEMBUAT PROGRAM TANDA PANAH DENGAN C++
#include<iostream> #include <iomanip> using namespace std; int main() { int n=6, s, i, j; cout << "CETAK SIMBOL "; for (i = 0; i <= n; i++) { for (s = n; s > i; s--) cout << " "; for (j = 0; j < i; j++) cout << "* "; cout << "\n"; } for (int h=1; h<=4; h++) { cout<<setw(7)<<"***"<<endl; } }