Thanks for the help. How do I close this thread?
--- Update ---
Shortening the code
--- Update ---
this code doesn't print out 1
Type: Posts; User: Ryan15
Thanks for the help. How do I close this thread?
--- Update ---
Shortening the code
--- Update ---
this code doesn't print out 1
(b) 1 3 6 10 15 21
I want my loop to have this output.
Is there an easier way than my current code?
for(int i=1;i<=6;i++)
{
int d=i*(i+1)/2;
System.out.print(d+ " ");...