Computer Science, asked by Shivanshjaiswal, 1 year ago

1,2,4,8,16,32,64,...,1024. Write a program to print . According to Java

Answers

Answered by chaitanyakrishn1
7
JAVA PROGRAM:

class Pattern
{
Public static void main ( String args [ ] )
{
System. out.println ("the required pattern is as follows");
Int s;
for (int I = 1; I <=12; I++)
{
      s= l*l;
    System.out.println (l);
}
}
}

Hope it helps 

Thank u ★ ★ ★
#ckc

chaitanyakrishn1: I made one mistake . I will ckrrect it
Answered by adrika04
0

Explanation:

class sum

class sum{

class sum{Public you'd check ()

class sum{Public you'd check (){

class sum{Public you'd check (){int sum =0;

class sum{Public you'd check (){int sum =0;for ( int num =2; num<=1024; num ++)

class sum{Public you'd check (){int sum =0;for ( int num =2; num<=1024; num ++){

class sum{Public you'd check (){int sum =0;for ( int num =2; num<=1024; num ++){ S.o.pln (num);

class sum{Public you'd check (){int sum =0;for ( int num =2; num<=1024; num ++){ S.o.pln (num);}

class sum{Public you'd check (){int sum =0;for ( int num =2; num<=1024; num ++){ S.o.pln (num);}S.opln (sum);

class sum{Public you'd check (){int sum =0;for ( int num =2; num<=1024; num ++){ S.o.pln (num);}S.opln (sum); }

class sum{Public you'd check (){int sum =0;for ( int num =2; num<=1024; num ++){ S.o.pln (num);}S.opln (sum); } }

Hope this answer will help you

Similar questions