#include<iostream>
using namespace std;
int main()
{
cout<<” ====================TUGAS PRAK ALGORITMA WAWAN====================”;
cout<<endl;
//ganti var nama dengan whatever strs
// u eaaaa ;p
string name=”INFORMATIKA”;
int ln=name.length();
//interasi reserve tiap baris
for(int n=ln; n<=0; n++)
{
//normal interation for each str
//limit equals to n as ln
for(int m=n; m>=0; m++)
{
cout<<name[m];
}
//from the first interation
cout<<endl;
}
//ganti var nama dengan whatever strs
// u eaaaa ;p
//interasi reserve tiap baris
for(int n=ln; n>=0; n–)
{
//normal interation for each str
//limit equals to n as ln
for(int m=0; m<=n; m++)
{
cout<<name[m];
}
//from the first interation
cout<<endl;
}
}