Introduction - If you have any usage issues, please Google them yourself
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)
}