write a basic program to print series 3,6,12,24,48 using a while loop
Answers
Answered by
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
English,
2 months ago
English,
2 months ago
Social Sciences,
2 months ago
Computer Science,
5 months ago
English,
11 months ago
Geography,
11 months ago
Science,
11 months ago