#
Heart shape on # calor radunknown
java
9 months ago
964 B
7
Indexable
package Java;
2 public class heart
3 {
4 public static void main(String args[])
5 {
6 int i,j, n = 15 ;
7 for i = n / 2 ;i<=n;i+=2)
8 {
9 for( j = 1 ; j < n - 1 ;j+=2)
10 {
11 System.out.print(" ");
12}
13 for( i = 1 ;i<=i;j++)
14 {
23K
15 System.out.print("* ");
16 }
17 System.out.println();
Dislike
18}
19 for( j = 1 ;j<=(i*2)-1;j++)
20 {
21 System.out.print("*");
140
22}
23 System.out.println();
24}
Share
17
}
}
}
}
}
}
}Editor is loading...
Leave a Comment