java program to print 1+2+3+4+5+n
Answers
Answered by
4
Answer:
Java program to print 1,2,3,4...in triangular patterns
- //java program to print 1,2,3,4...in triangular pattern.
- Import java. Io. Buffered reader ;
- Import java . Io. Inputstreamreader;
- Public class pattern 1{
- // function to display the pattern.
- INT. I. J. K. N;
- Systems. Out. Println ("enter the number of lines ") ;
- Buffered reader br =new Buffered reader (new input stream reader ( system. In)) ;
THANK YOU
Similar questions