@TheFuture36520

The amount of thinking that went into it is amazing

@Talkatfive

Nice job

@NilimaPradhan-us9se

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

@allalonetech

Really amazing, coding is fun, isn't it?

@AlmazKojaxmet

Split screen second for retype

@elonmusk78605

// 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());  

            }  

    }  

}

@suitednerd

Make a real hearth next time😎🫀

@GanapatiMadavi

Any Java student 😊

@DadaCoding

That’s really interesting. 🙌🏽💜

@MindsetElevatePath611

This is the wrong code for printing the heart

@Zim-o9r

Class 9th students can do this! 
(Patterns with spaces r hard lmao)

@AgyeiRawlings-p5s

Please I want the owner who make this video contact  to communicate with

@JosephIkoh

Please what Java compiler can I use as a beginner

@KILLER_dk_295

How to create it

@rohanb6822

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🎉😮😅

@RDeepaRDeepa-k8f

Errors are coming when compiling this code😓😓😓

@tanri09yt

Бро, пиши с пробелами, не удобно читать 😢😢😢

@amankumarmahto1913

Bhai curly backet 13 hai

@learnbypreet

great information