Computer Science, asked by santoshkr101982, 5 months ago

write a basic program to print series 3,6,12,24,48 using a while loop​

Answers

Answered by mahadevmage16
0

Answer:

class numbers{

int n;

public void print(){

while(<condition>)

{

System.out.println(n);

n++

}

public static void main (string args[]){

numbers ob = new numbers();

ob.print();

}

}

Similar questions
Math, 5 months ago