Computer Science, asked by mankoo1, 1 year ago

program to print the series 0,3,8,15,24, 35,48,63

Answers

Answered by Vintage
3
Since you did not mention the code language....
The trick would be take a variable in a loop starting from 0 till 8 and print the no.s as the (square of the variable - 1)

mankoo1: I need it in java language
Vintage: wait then
mankoo1: ok
Vintage: for(i=0;i<=8;i++){System.out.print(i*i-1+",");}
Vintage: it would be i<=8
Similar questions