Computer Science, asked by shreyosidas20, 11 months ago

WAP to print the following numbers 0,3,8,15,24,35,48,63 in java​

Answers

Answered by AneesKakar
0

import java.util.*;

class D

{

public static void main(String args[])

{

int i,j=0;

int k=3;

for(i=1;i<=8;i++)

{

System.out.print(j+","+"");

j+=k;

k=k+2;

}

}

}

Answered by Aadya1234T
0

Answer:-)

Hope this helps you....

PLEASE MARK ME AS BRAINLIEST.......

Attachments:
Similar questions