Open sujana-kamasany opened 2 years ago
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();
}
}
}
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.
@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 :
Hey, I want to work on this please assign me
Add Java Program to print Floyd's Triangle