Advertisements

Aatul Palandurkar

Author Archive

Q. Write a Java program to print given pattern.

Pattern 1 :

1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
1 2 3 4 5 6
1 2 3 4 5 6 7

 

Java Program:


import java.util.Scanner;

public class MainClass

{

public static void main(String[] args)

{

Scanner sc = new Scanner(System.in);

//Taking rows value from the user

System.out.println("How many rows you want in this pattern?");

int rows = sc.nextInt();

System.out.println("Here is your pattern....!!!");

for (int i = 1; i <= rows; i++)

{

for (int j = 1; j <= i; j++)

{

System.out.print(j+" ");

}

System.out.println();

}

//Close the resources

sc.close();

}

}

Advertisements

Earn money by uploading 15 seconds videos on Vigo (formerly Hypestar) Join now and start earning now.

Click Here to Join

#passiveincome #earnfromvideos #earnmoneyfromvideos #earnmoneybyuploadingvideos #monetizevideos #makemoneyfromvideos #youtubealternative #promoteyouryoutubechannel #promoteyoutubechannel

#hypestar #vigo #vigovideos #15secvideos #promovideos #shortvideos #shortvideoclip #passiveincomestream #passiveincomeguru #passiveincomeonline #passiveincomemethods #passiveincomelifestyle #passiveincomerocks

Glimpse of Stress Management Seminar by Aatul Palandurkar at Samarth Ramdas High School and Junior College, Aroli, Dist. Nagpur

Thanks a lot to Principal Nanda Kumbhalkar Mam and Management for the invitation, it was a great experience to visit the campus.

Regards

Aatul Palandurkar

Life Coach, International Trainer and Author

http://aatulpalandurkar.com

http://aatul.me (Tech Blog)

https://www.facebook.com/aatulpalandu…

https://www.instagram.com/aatulpaland…

https://twitter.com/AtulPalandurkar

To be happy for life, one must remember 5 rules as explained in the video. Follow and implement them in life to stay happy forever.

Regards
Aatul Palandurkar
Life Coach, International Trainer and Author
https://www.facebook.com/aatulpalandurkar
https://www.instagram.com/aatulpalandurkar/
https://twitter.com/AtulPalandurkar


Advertisements

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 14,537 other followers

Tweets

YouTube

Advertisements
%d bloggers like this: