Source Code



Piramida angka

  • Sulaeman Susanto
  • Aug 20' 13
  • C++
  • 115
  • 225
  • Indonesia

Membuar program piramida angka, berbentuk tombak

nich gan kodingnya lihat dimari dha:

#include <iostream.h>
#include <stdio.h>
#include <conio.h>
int main()
{
int a,b,c,N;
cout<<" Program Segitiga angka "<<endl;
cout<<"                        "<<endl;
printf("Masukan Nilai : ");
scanf("%d",&N);
for (a=1;a<=N;a++)
    {
        for (b=1;b<=a;b++)
        {
            printf("%d ",b);
        }
        printf("
");
    }
for (b=1;b<=N;b++)
    {
        for (c=N-1;c>=b;c--)
        {
            printf("%d ",N-c);
        }
        printf("
");
    }
getch();
return 0;
}
  • Tags :
comments powered by Disqus

Related Code

Error 945 SQL Server 2008

Looping Leaning Figures

Remarks Script Browser

Creating Specification Page Number

Enter removing Signs In Field (string)

Deleting Log MSSQL Database

Restore and Backup Database MSSQL Using Query

SQL Database backup using Query

Piramida bintang rata kanan

Program design Pot



Category