#I DO NOT GET WHAT IS WRONG WHAT DO I DO OMG

63 messages ยท Page 1 of 1 (latest)

mortal axle
#

still need help

tame patioBOT
#

โŒ› This post has been reserved for your question.

Hey @mortal axle! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

mortal axle
#

:C

#

just send answer

#

idc anymore

brazen sleet
#

what site is that

#

@mortal axle

mortal axle
#

codeHS

#

it is a coding website

#

for begginer like me

#

and our school send it

brazen sleet
#

yeye can you send the code page

#

like the one youre trying to solve

mortal axle
#

how i do that

brazen sleet
#

copy url where you are

#

on that website

mortal axle
#

copy the link?

brazen sleet
#

yes

mortal axle
#

this is for school only i think

brazen sleet
#

god i cant easily access that let me just copy your code

#

or paste is here

mortal axle
#

public class TreeOfStars
{
public static void main(String[] args)
{
// Call makeATree
makeATree();
}
public static void makeATree(){
for(int i = 1; i <= 9; i++){

    for(int j = 1; j<=9; j++){
        System.out.println("* ");
    }
    
System.out.println();
    }
}

}

brazen sleet
#

alright

mortal axle
#

thank you

#

i love u

#

u are way better than danish and daniel

#

do not tell them lol

brazen sleet
#

haha i joined an hour ago im no pro but i think i can help you

mortal axle
#

uyaaaaaaaay

brazen sleet
#

just gotta add the spaces hopefully

#

dun

#
{
    public static void main(String[] args)
    {
       // Call makeATree 
        makeATree(8);
    }
    public static void makeATree(int height){
        for(int i = height; i >=0 ; i = i-1){
            
            for(int y = 0; y<=height-i; y++)
            {
                System.out.print(" ");
            }
            
            for(int x = 0; x<=i; x++)
            {
                System.out.print("* ");
            }
            System.out.print("\n");
        }
    }

}```
#

@mortal axle

mortal axle
#

love u

#

IT WORK OMG

#

@brazen sleet SIGN UR ASS UP FOR SOFTWARE ENGIEER

brazen sleet
#

lmao

#

took so long

#

๐ŸŽ‰ my first java code

mortal axle
#

it was great ๐Ÿ˜„

#

it was wrong

#

lol

#

it is good

#

idk how

#

there was a space difference

#

public class Main
{
public static void main(String[] args)
{
// Call makeATree
makeATree(8);
}
public static void makeATree(int height){
for(int i = height; i >=0 ; i = i-1){

        for(int y = 0; y<=height-i; y++)
        {
            System.out.print(" ");
        }
        
        for(int x = 0; x<=i; x++)
        {
            System.out.print(" * ");
        }
        System.out.print("\n");
    }
}

}

#

btw i did this

#

and still got it wrong

#

i did it both way

#

:C

#

NEVERMIND

#

i GOT IT

#

public class Main
{
public static void main(String[] args)
{
// Call makeATree
makeATree(9);
}
public static void makeATree(int height){
for(int i = height; i >=0 ; i = i-1){

        for(int y = 1; y<=height-i; y++)
        {
            System.out.print(" ");
        }
        
        for(int x = 1; x<=i; x++)
        {
            System.out.print("* ");
        }
        System.out.print("\n");
    }
}

}

#

was the answer

brazen sleet
#

ahh

tame patioBOT
#

๐Ÿ’ค Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.

civic basalt
mortal axle
#

Close