Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print Floyd's Triangle #60

Open
sujana-kamasany opened this issue Feb 14, 2022 · 4 comments
Open

Print Floyd's Triangle #60

sujana-kamasany opened this issue Feb 14, 2022 · 4 comments
Labels
good first issue Good for newcomers Hacktoberfest-Accepted Make your Pull Request for Hacktoberfest 2023 Java Basic Java Programs

Comments

@sujana-kamasany
Copy link
Owner

Add Java Program to print Floyd's Triangle

image

@sujana-kamasany sujana-kamasany added good first issue Good for newcomers Java Basic Java Programs labels Feb 14, 2022
@DHARUNKUMAR7
Copy link
Contributor

My ans:
public class Main {

public static void main(String[] args) throws Exception {
// write your code here
Scanner in = new Scanner(System.in);
int a = in.nextInt();
int b = 1;
for(int i = 0 ; i < a; i++){
    for(int j = 0 ; j < i + 1;j++){
        System.out.print(b++ + " ");
    }
    System.out.println();
}
}

}

@DHARUNKUMAR7
Copy link
Contributor

Let me know should i make post my answers in comment section or i need to make a pull request if it so help me to make a pull request i am new to it.

@sujana-kamasany
Copy link
Owner Author

@DHARUNKUMAR7 Thank you for your solution ! Please go ahead and make a pull request!

Once go through the readme file on making your first contribution and if you are stuck anywhere let me know i will help you out!

Note :

  • you can directly upload or create a new file on GitHub although this is not suggested because learning git is essential.
  • Download GitHub desktop it is quite easy and beginner friendly
  • Go through This video to learn more about git and This in making first pull request .

@sujana-kamasany sujana-kamasany added the Hacktoberfest-Accepted Make your Pull Request for Hacktoberfest 2023 label Oct 5, 2023
@kashish-51
Copy link
Contributor

Hey, I want to work on this please assign me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers Hacktoberfest-Accepted Make your Pull Request for Hacktoberfest 2023 Java Basic Java Programs
Projects
None yet
Development

No branches or pull requests

3 participants