#pragma argsused
#include
#include
#include
#include
int main()
{
int n,i,bilGan,bilGen,jumGan,jumGen;
cout<<"DERET BILANGAN DENGAN FOR"<
cout<
jumGan=0;jumGen=0;
cout<<"Bil."<
for(i=1;i<=n;i++)
{
cout<
jumGan=jumGan+bilGan;
jumGen=jumGen+bilGen;
bilGan=bilGan+2;
bilGen=bilGen+2;
}
cout<
}
Tidak ada komentar:
Posting Komentar