C++ Bintang

#include<iostream.h>
#include<conio.h>
main(){
int i,j, N;
  cout<<"masukan N = ";
  cin>>N;
  cout<<endl;
  for(i=1;i<=N;i++){
    for(j=1;j<=i;j++){
      cout<<"*";
      }
  cout<<endl;
   }
  getch();
}

0 Response to "C++ Bintang"

Posting Komentar