Description: making triangular number with c++ using integer
#include<stdio.h>
int triangular(int a)
main()
{
int x
printf("menghitung triangular bilangan\n")
printf("masukkan bilangan x= ")
scanf(" d",&x)
triangular(x)
printf("selesai\n")
}
int triangular(int a)
{
int b,jum=0
for(b=1 b<=a b++)
jum=jum+b
printf("bilangan triangular dari d adalah d\n",a,jum)
}
To Search:
File list (Check if you may need any files):
triangular.c
triangular.dsp
triangular.plg
Debug\triangular.exe
.....\triangular.ilk
.....\triangular.obj
.....\triangular.pch
.....\triangular.pdb
.....\vc60.idb
.....\vc60.pdb