Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
amit
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_111 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { String a="AMIT"; int i,j,k; for( i=0;i<=6;i++) { for(j=0;j<6-i;j++) { if(j<=i) System.out.print(a.charAt(j)); else System.out.print(a.charAt(i)); } for(k=i;k>=0;k--) { if(k>=j) System.out.print(a.charAt(j)); else System.out.print(a.charAt(k)); } System.out.println(); } } }
run
|
edit
|
history
|
help
0
Umang Khambhalikar
Fibonacci 2
susun
on_off
Memory cleanup
polymorphic mapper
BFS in graph
3a
f
Municipiu_Problema_2_Palindrome