Project MELISE Beta

Coding inside, Gaming aside, Shitposting outside.

CPP

Author: Prasetyo

Preview

looptriangle1.jpg

Code

#include <iostream>
using namespace std;

int main(){
int i, j, k, l, n;
cout<<"Masukkan panjang segi3\t: ";
cin >>n;

for(i=1; j<=n; i++){
for (j=n; j>=i; j--){
cout<<" ";
}
for (k=1; k<=i; k++){
cout<<"*";
}
for (l=1; l cout<<"*";
}
cout<<endl;
}
}

www.000webhost.com