(Display a pattern) Write a program that displays the following pattern:
J A V V A
J A A V V A A
J J AAAAAA V V AAAAAA
J J A A V A A
Answer
/**
* Program - 03
* Write a Program that displays:
* J A V V A
J A A V V A A
J J AAAAA V V AAAAA
J J A A V A A
**/
public class HelloWorld
{
public static void main(String args[])
{
System.out.println(" J A V V A");
System.out.println(" J A A V V A A");
System.out.println(" J J AAAAA V V AAAAA");
System.out.println(" J J A A V A A");
}
}
OUTPUT
J A V V A
J A A V V A A
J J AAAAA V V AAAAA
J J A A V A A
If you have any doubts or questions, please let me know.