#include
#include
void main ()
{
int a,b,jumlah;
jumlah=0;
cout<<"\n\n";
cout<<"INPUT ANGKA = ";
cin>>a;
cout<
for (b=1;b<=a;b++)
{
jumlah+=b;
if (b!=a)
cout<<<" + ";
else
cout<<<" = "<<
}
}
cout<<<" = "<
}
}
No comments:
Post a Comment