Chemistry, asked by eshitagiri5656, 2 months ago

write a Java program To display the following pattern:
A
А В
А ВС
A B C D​

Answers

Answered by laxmishilpadornala
1

Answer:

public class kboat pattern

public static void main ( string args() {

for (int I =65;I<70 ;I++){

for (int j =65;j<=I,j++){

if ( i% 2= =0)

system out. print ((char)(j+32));

else

system out.print ((char)j)

}

system. out . print In ();

}

}

}

Explanation:

I hope it's helps you

Similar questions