Postingan

Menampilkan postingan dari Januari, 2022

MEMBUAT PROGRAM TANDA PANAH DENGAN C++

Gambar
 #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; } }