Nice job
Due to the growing demand for AI in the industry, I enrolled my child in Moonpreneur’s robotics program to support their education in this field. I’d like to know if this was the right decision
Really amazing, coding is fun, isn't it?
Split screen second for retype
// create class HeartPatternExample1 that will print Heart pattern public class HeartPatternExample1 { // main() method start public static void main(String[] args) { // declare and initialize variable for output size final int size = 4 ; // nested for loop to print the upper part of Heart for (int m = 0; m < size; m++) { for (int n = 0; n <= 4 * size; n++) { double pos1 = Math.sqrt(Math.pow(m - size, 2) + Math.pow(n - size, 2)); double pos2 = Math.sqrt(Math.pow(m - size, 2) + Math.pow(n - 3 * size, 2)); if (pos1 < size + 0.5 || pos2 < size + 0.5) { System.out.print('*'); } else { System.out.print(' '); } } System.out.print(System.lineSeparator()); } // for loop to print the lower part of Heart for (int m = 1; m <= 2 * size; m++) { for (int n = 0; n < m; n++) { System.out.print(' '); } for (int n = 0; n < 4 * size + 1 - 2 * m; n++) { System.out.print("*"); } System.out.print(System.lineSeparator()); } } }
Make a real hearth next time😎🫀
Any Java student 😊
That’s really interesting. 🙌🏽💜
Nice
This is the wrong code for printing the heart
Class 9th students can do this! (Patterns with spaces r hard lmao)
Please I want the owner who make this video contact to communicate with
Please what Java compiler can I use as a beginner
How to create it
Please give me some more like this chennel on now to create in HTML tricks create a new design image on now so all the best i give you some more like this chennel on now🎉😮😅
Errors are coming when compiling this code😓😓😓
Бро, пиши с пробелами, не удобно читать 😢😢😢
Bhai curly backet 13 hai
great information
@TheFuture36520