63 055
Assignments Done
99,1%
Successfully Done
In July 2018

Answer to Question #6400 in Java | JSP | JSF for Subhojeet

Question #6400
print a heart...using asterix(*) ......in java
Expert's answer
package heart;

public class Main {

public static void main(String[] args) {
& String[] heart = {" ******* & *********",
quot; ************ *******& ****",
quot; ************************& ***",
quot; ************************& ***",
quot; ************************& ***",
quot; **********************& ***",
quot; & ***********************",
quot; *****************",
quot; *************",
quot; *******",
quot; ***",
quot; *"};

& for(int i = 0; i < 12; i++)
System.out.println(heart[i]);
}

}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions