Source Code



Piramida bintang rata kanan

  • Sulaeman Susanto
  • Jul 30' 13
  • C++
  • 90
  • 229
  • Indonesia

Program untuk menghasilkan piramida bintang rata kanan

ini guys kodingnya ya

#include<iostream.h>
#include<conio.h>

main()
{
int v,a,b,c,x;
cout<<"--------------------------------------------------"<<endl;
cout<<"| Welcome to my program                           |"<<endl;
cout<<"| Santo   	                                 |"<<endl;
cout<<"| 085219838539                                    |"<<endl;
cout<<"| IT SUpprot                                      |"<<endl;
cout<<"--------------------------------------------------"<<endl;
cout<<"                                             "<<endl;
cout<<"Masukkan Angka Untuk Gambar Segitiga rata kanan :";
cin>>v;
cout<<endl;
for(x=v;x>0;x--)
{
for(a=x-1;a>0;a--)
{
cout<<" ";
}

for(b=v-(x-1);b>0;b--)
{
cout<<"*";
}
cout<<endl;
}
getch();
}
  • Tags :
comments powered by Disqus

Related Code

Program design Pot

Program piramida bintang rata kiri bawah

Piramida bintang rata kanan bawah

Piramida bintang bawah

Bintang piramida atas

Bintang piramida rata kiri

Program bintang piramida Love

Program Berat Badan

Amount in words or Spell Number in Delphi

Program kalkulator



Category