Saturday, July 14, 2012

C++ : CETAK BILANGAN VIBONANCI 2

Listing Program :

# include

void main()

{
for (int x=1;x<=5;x++)
    {
    for (int z=5-x;z>= 1;z--)
        cout<<" ";
    for (int y=1;y<=x;y++)
        cout<<"* ";
    cout<
    }
for (int a=4;a>=1;a--)
    {
    for (int b=4-a;b>= 1;b--)
        cout<<" ";
    for (int c=1;c<=a;c++)
        cout<<" "<<"*";
    cout<
    }}

Print Out :

Silahkan Berkomentar Pada Form Komentar dengan sopan dan santun .. No Spam .... !!! thank's @Admin
EmoticonEmoticon

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
:-?
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
$-)
(y)
(f)
x-)
(k)
(h)
cheer