<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5878757790980310693</id><updated>2024-08-29T08:42:38.815+05:30</updated><category term="easy code series"/><category term="A-Z alphabets printing in Star Pattern"/><category term="Home"/><category term="Pattern"/><category term="easy code series in C"/><title type='text'>Basic Java Programs</title><subtitle type='html'>Basic Java programs. All programs done in very simple ways. It helps beginners to grow their programming skills and build a programming logic. </subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>91</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-7377826422232925148</id><published>2021-02-15T14:44:00.034+05:30</published><updated>2021-02-16T11:31:32.541+05:30</updated><title type='text'>Pattern 31 &amp; 32</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2021/02/pattern-31-32.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 31&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
&lt;b&gt;&lt;b&gt;# Way 1&lt;/b&gt;&lt;/b&gt;

public class P7 
{
	public static void main(String[] args) 
	{
		int i, j, k, n=5;		
		for( i=-n; i&amp;lt;=n; i++)
		{
			if(i&amp;lt;0)
				k=-i;
			else
				k=i;
			for(j=1; j&amp;lt;=k; j++)
				System.out.print(&quot;  &quot;);
			for(j=0; j&amp;lt;2*(n-k)+1; j++)
				System.out.print(&quot;*&quot;+&quot; &quot;);
		System.out.println();
		}
	}
}

&lt;b&gt;&lt;b&gt;# Way 2&lt;/b&gt;&lt;/b&gt;

import java.util.Scanner;
public class P2 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println(&quot; Enter Rows : &quot;);
		int row = sc.nextInt();
		for(int i=0; i&amp;lt;row; i++)
		{
			for(int j=1; j&amp;lt;=row-i; j++)
				System.out.print(&quot;  &quot;);
			for(int j=1; j&amp;lt;=2*i-1; j++)
				System.out.print(&quot;* &quot;);
		System.out.println();
		}
		for(int i=row; i&amp;gt;=0; i--)
		{
			for(int j=1; j&amp;lt;=row-i; j++)
				System.out.print(&quot;  &quot;);
			for(int j=1; j&amp;lt;=2*i-1; j++)
				System.out.print(&quot;* &quot;);
		System.out.println();	
		}
	}
}

&lt;b&gt;OUTPUT&lt;/b&gt;

 &lt;b&gt;	* 
      * * * 
    * * * * * 
  * * * * * * * 
* * * * * * * * * 
  * * * * * * * 
    * * * * * 
      * * * 
        *&lt;/b&gt; 
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJXPhPW4ZYYsCbVcUJMGnXG5ZKOYepQeBNoI68C4leCCdWIQzgtk-dzeXvZJ-SruOdMKyMWMwC_fEU3Sqfj0h4nAJlyArLRRMwE5J2ecY2gLJwNFSATtkQ8qLIXmhNowxHuEsSVatLSos/s1365/p46.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;715&quot; data-original-width=&quot;1365&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJXPhPW4ZYYsCbVcUJMGnXG5ZKOYepQeBNoI68C4leCCdWIQzgtk-dzeXvZJ-SruOdMKyMWMwC_fEU3Sqfj0h4nAJlyArLRRMwE5J2ecY2gLJwNFSATtkQ8qLIXmhNowxHuEsSVatLSos/s600/p46.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2021/02/pattern-31-32.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 32&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
&lt;b&gt;&lt;b&gt;# Way 1&lt;/b&gt;&lt;/b&gt;

import java.util.Scanner;
public class p3 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.print(&quot; Enter Rows : &quot;);
		int row = sc.nextInt();
		for(int i=row; i&amp;gt;=0; i--)
		{
			for(int j=1; j&amp;lt;=i; j++)
				System.out.print(&quot;  &quot;);
			for(int j=1; j&amp;lt;=row-i; j++)
				System.out.print(&quot; *&quot;+&quot;  &quot;);
		System.out.println();	
		}
		for(int i=1; i&amp;lt;row; i++)
		{
			for(int j=1; j&amp;lt;=i; j++)
				System.out.print(&quot;  &quot;);
			for(int j=1; j&amp;lt;=row-i; j++)
				System.out.print(&quot; *&quot;+&quot;  &quot;);
		System.out.println();	
		}
	}
}

&lt;b&gt;&lt;b&gt;# Way 2&lt;/b&gt;&lt;/b&gt;

public class P7 
{
	public static void main(String[] args) 
	{
		int i, j, k, n=5;
		for( i=-n; i&amp;lt;=n; i++)
		{
			if(i&amp;lt;0)
				k=-i;
			else
				k=i;
			for(j=1; j&amp;lt;=k; j++)
				System.out.print(&quot; &quot;);
			for(j=0; j&amp;lt;(n-k)+1; j++)
				System.out.print(&quot;*&quot;+&quot; &quot;);
		System.out.println();
		}
	}
}

&lt;b&gt;OUTPUT&lt;/b&gt;

&lt;b&gt;     * 
    * * 
   * * * 
  * * * * 
 * * * * * 
* * * * * * 
 * * * * * 
  * * * * 
   * * * 
    * * 
     *&lt;/b&gt;
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI3RgPniYQ0Ru8ZrNHVbfKJzfAiXQofU6zWWy8x0R36-2IjhBRKZ0gBBjFd8hn9c2cB9YDRyT96unDt60lZ6EEGsLz2r5vXBuCbOdW8J6nE9ym7VynTGQljL5nyxIiMwU0RvgGDcfYM0c/s1363/p47.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;707&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI3RgPniYQ0Ru8ZrNHVbfKJzfAiXQofU6zWWy8x0R36-2IjhBRKZ0gBBjFd8hn9c2cB9YDRyT96unDt60lZ6EEGsLz2r5vXBuCbOdW8J6nE9ym7VynTGQljL5nyxIiMwU0RvgGDcfYM0c/s600/p47.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/7377826422232925148/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2021/02/pattern-31-32.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/7377826422232925148'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/7377826422232925148'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2021/02/pattern-31-32.html' title='Pattern 31 &amp; 32'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJXPhPW4ZYYsCbVcUJMGnXG5ZKOYepQeBNoI68C4leCCdWIQzgtk-dzeXvZJ-SruOdMKyMWMwC_fEU3Sqfj0h4nAJlyArLRRMwE5J2ecY2gLJwNFSATtkQ8qLIXmhNowxHuEsSVatLSos/s72-c/p46.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-1630801970600392955</id><published>2021-01-27T14:39:00.011+05:30</published><updated>2021-01-30T16:34:13.846+05:30</updated><title type='text'>Simple Matrix Printing Program</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2021/01/simple-matrix-printing-program.html&quot; target=&quot;_blank&quot;&gt;
    Write a Java Program to print Matrix with or without User Interaction &lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;

&lt;pre class=&quot;brush: java&quot;&gt;
&lt;i&gt;&lt;b&gt; 1. Matrix printing without user interaction&lt;/b&gt;&lt;/i&gt;

public class M1 {
	public static void main(String[] args) 
	{
		int matrix[][] = {{1,2,3}, {4,5,6}, {7,8,9}};
		
		int row = matrix.length;
		int col = matrix[0].length;
		System.out.println(&quot;\nMatrix Printing...&quot;);
		
		for(int i=0; i&amp;lt;row;i++)
		{			
			for(int j=0; j&amp;lt;col;j++)
				System.out.print(matrix[i][j]+&quot; &quot;);			
			System.out.println();
		}		
	}
}
&lt;b&gt;&lt;i&gt;OUTPUT&lt;/i&gt;&lt;/b&gt;

Matrix Printing...
1 2 3 
4 5 6 
7 8 9 

&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPAX7z2tlkXvBboI_fZvq5gI3A8iAS7b_z7G_bAyasz1JDl6z1Cg_wjUN5URNxSHupwwv3J-W61X8Csl8MDcEWf4S2RPsoHTqT1ZOJ-KJWvpTm0j8h7ai0XvFtK4Rq6gdLcJT6K62Dy2s/s1363/M11.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;
    &lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;747&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPAX7z2tlkXvBboI_fZvq5gI3A8iAS7b_z7G_bAyasz1JDl6z1Cg_wjUN5URNxSHupwwv3J-W61X8Csl8MDcEWf4S2RPsoHTqT1ZOJ-KJWvpTm0j8h7ai0XvFtK4Rq6gdLcJT6K62Dy2s/s600/M11.png&quot;/&gt;
  &lt;/a&gt;
&lt;/div&gt;

&lt;pre class=&quot;brush: java&quot;&gt;
&lt;i&gt;&lt;b&gt; 2. Matrix printing Using Scanner (Taking input from user) &lt;/b&gt;&lt;/i&gt;

import java.util.Scanner;
public class M2 {
	public static void main(String[] args) {
	 Scanner s = new Scanner(System.in);
	 System.out.println(&quot;enter rows&quot;);
	 int m = s.nextInt();
	 System.out.println(&quot;enter coloumn&quot;);
	 int n = s.nextInt();	 
	 int mat[][] = new int[m][n];
	 System.out.println(&quot;enter elements..&quot;);
	 	for(int i=0; i&amp;lt;m;i++){
			for(int j=0; j&amp;lt;n;j++)
				mat[i][j]=s.nextInt();
		}
	 	System.out.println(&quot;................&quot;);
	 	for(int i=0; i&amp;lt;m;i++){
			for(int j=0; j&amp;lt;n;j++)
				System.out.print(mat[i][j] +&quot; &quot;);
			System.out.println();
		}
	}
}
&lt;b&gt;&lt;i&gt;OUTPUT&lt;/i&gt;&lt;/b&gt;

enter rows
3
enter coloumn
3
enter elements..
1
2
3
0
6
5
0
4
7
................
1 2 3 
0 6 5 
0 4 7 

&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilpmycqk0tGYpJoApjR4xRZkZtm_Mq5npFnoVvG7oPaqXhsM8fDVEVlt4JE0_QOlkkcO4OKHWmH0vTpOYN8XiJ2WOpWSXSnYBc4HpysZfpvSJ3DnZsW7uy7QucUeiW3cDqWY7SpCfUV84/s1363/M2.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; clear: left; float: left;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;741&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilpmycqk0tGYpJoApjR4xRZkZtm_Mq5npFnoVvG7oPaqXhsM8fDVEVlt4JE0_QOlkkcO4OKHWmH0vTpOYN8XiJ2WOpWSXSnYBc4HpysZfpvSJ3DnZsW7uy7QucUeiW3cDqWY7SpCfUV84/s600/M2.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/1630801970600392955/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2021/01/simple-matrix-printing-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/1630801970600392955'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/1630801970600392955'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2021/01/simple-matrix-printing-program.html' title='Simple Matrix Printing Program'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPAX7z2tlkXvBboI_fZvq5gI3A8iAS7b_z7G_bAyasz1JDl6z1Cg_wjUN5URNxSHupwwv3J-W61X8Csl8MDcEWf4S2RPsoHTqT1ZOJ-KJWvpTm0j8h7ai0XvFtK4Rq6gdLcJT6K62Dy2s/s72-c/M11.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-8853649826515261476</id><published>2021-01-04T18:17:00.022+05:30</published><updated>2021-02-15T14:26:33.882+05:30</updated><title type='text'>Matrix Addition, Subtraction, Multiplication methods</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2021/01/matrix-addition-subtraction.html&quot; target=&quot;_blank&quot;&gt;
   Matrix elements addition, substraction and multiplication methods&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
&lt;b&gt;&lt;i&gt;# Substraction OF MATRIX ELEMENTS USING METHOD&lt;/i&gt;&lt;/b&gt;

//NOTE:To add matrix elements, rows and coloumns of both matrices must be same. 
import java.util.Scanner;
public class SubMatrix {
	void Matrix()
	{
		Scanner s = new Scanner(System.in);
		 System.out.println(&quot;Enter matrix rows&quot;);
		 	int m = s.nextInt();
		 System.out.println(&quot;Enter matrix coloumn&quot;);
		 	int n = s.nextInt();	 
		 	int a[][] = new int[m][n]; 
		 	int b[][] = new int[m][n];
		 	int c[][] = new int[m][n];
		 System.out.println(&quot;Enter 1st matrix elements..&quot;);
		 	for(int i=0; i&amp;lt;m;i++)
			{
				for(int j=0; j&amp;lt;n;j++)
					a[i][j]=s.nextInt();
			}		 
		 System.out.println(&quot;Enter 2nd matrix elements..&quot;);
		  for(int i=0; i&amp;lt;m;i++)
			{
				for(int j=0; j&amp;lt;n;j++)
						b[i][j]=s.nextInt();
			}		
		 System.out.println(&quot;Substraction of two Matrices&quot;);
		 	for(int i=0; i&amp;lt;m;i++)
			{
				for(int j=0; j&amp;lt;n;j++)
					c[i][j]=a[i][j]-b[i][j];
			}
		 	for(int i=0; i&amp;lt;m;i++)
			{
				for(int j=0; j&amp;lt;n;j++)
					System.out.print(c[i][j] +&quot; &quot;);
				System.out.println();
			}
	}
	public static void main(String[] args) 
	{
		SubMatrix obj = new SubMatrix();
		obj.Matrix();
	}
}

&lt;b&gt;&lt;b&gt;OUTPUT&lt;/b&gt;&lt;/b&gt;

Enter matrix rows
2
Enter matrix coloumn
2
Enter 1st matrix elements..
9
8
7
6
Enter 2nd matrix elements..
4
3
2
1
Substraction of two Matrices
5 5 
5 5 
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivWVnExW3-58OBnv73FIUXPmQtm3_pOWjBYO-bCFSL9qjpX7gMkvMjYO3CSCs-iaxCs5jnaKGstpqkdQ5fm9z2ghEXCX4pcLFTAFKQ4ZMKjEKgUxsbda0-QUcO1UNOqxrEDCYEhVXEgzc/s1363/mSub.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;747&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivWVnExW3-58OBnv73FIUXPmQtm3_pOWjBYO-bCFSL9qjpX7gMkvMjYO3CSCs-iaxCs5jnaKGstpqkdQ5fm9z2ghEXCX4pcLFTAFKQ4ZMKjEKgUxsbda0-QUcO1UNOqxrEDCYEhVXEgzc/s600/mSub.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgm3eWg1qU6VCgvaZsUBnLswo-ijndqbekRYtVJRBtXqnFbIKL3m6MYZN9QEbJHIehWL_FMlZEeoSdDBhdyHo-C1b9Wu_5yRfZOQ9t7_G-Ldr73LVXmFDqKJALYFKIjUOhqn-NdEJrVt_k/s1365/mSub1.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;747&quot; data-original-width=&quot;1365&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgm3eWg1qU6VCgvaZsUBnLswo-ijndqbekRYtVJRBtXqnFbIKL3m6MYZN9QEbJHIehWL_FMlZEeoSdDBhdyHo-C1b9Wu_5yRfZOQ9t7_G-Ldr73LVXmFDqKJALYFKIjUOhqn-NdEJrVt_k/s600/mSub1.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;pre class=&quot;brush: java&quot;&gt;
&lt;b&gt;&lt;i&gt;# ADDITION OF MATRIX ELEMENTS without METHOD(not taking input from user)&lt;/i&gt;&lt;/b&gt;

public class mAdd {
	public static void main(String[] args) 
	{
		int matrix1[][] = {{7,8,9},{6,5,4},{1,2,3}};
		int matrix2[][] = {{1,2,3},{4,5,6},{7,8,9}};
		int m=matrix1.length;
		int n=matrix1[0].length;
		int add[][]=new int[m][n];
		System.out.println(&quot;First matrix elements&quot;);
		for(int i=0; i&amp;lt;m;i++)
		{			
			for(int j=0; j&amp;lt;n;j++)
				System.out.print(matrix1[i][j]+&quot; &quot;);			
			System.out.println();
		}
		System.out.println(&quot;Second matrix elements&quot;);
		for(int i=0; i&amp;lt;m;i++)
		{			
			for(int j=0; j&amp;lt;n;j++)
				System.out.print(matrix2[i][j]+&quot; &quot;);			
			System.out.println();
		}
		System.out.println(&quot;Addition of two matrices&quot;);
		for(int i=0; i&amp;lt;m;i++)
		{
			for(int j=0; j&amp;lt;n;j++)
				add[i][j]=matrix1[i][j]+matrix2[i][j];
		}
	 	for(int i=0; i&amp;lt;m;i++)
		{
			for(int j=0; j&amp;lt;n;j++)
				System.out.print(add[i][j] +&quot; &quot;);
			System.out.println();
		}
	}
}


&lt;b&gt;&lt;b&gt;OUTPUT&lt;/b&gt;&lt;/b&gt;

First matrix elements
7 8 9 
6 5 4 
1 2 3 
Second matrix elements
1 2 3 
4 5 6 
7 8 9 
Addition of two matrices
8  10  12  
10  10  10  
8  10  12  

&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieiLGyGIvOKg8P14fmGtSPoFVYsKihbfs2IWDknTQkm8Odt8JxPVmMZ0TBoAnbZ485I6oNTp44fNX4bnCc7U9l5juhN3eOxrZuX0wv9usQ2pKYwxD-W0bQxXB_Cvc-KeNhBK0BzSlRyhw/s1363/mAdd.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;743&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieiLGyGIvOKg8P14fmGtSPoFVYsKihbfs2IWDknTQkm8Odt8JxPVmMZ0TBoAnbZ485I6oNTp44fNX4bnCc7U9l5juhN3eOxrZuX0wv9usQ2pKYwxD-W0bQxXB_Cvc-KeNhBK0BzSlRyhw/s600/mAdd.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiT31Y0LjgJuAKzFSsIZu8ZVuN9Kq9XCO7Yt3PLBRXBzCKXKk9W9BTSQFA9AR9jLtGSWWFo7bg4nON_Z1MzJD_OIawaoxej-j9An6jRgTa1KcmUCO4pv3mM9EppMB8kVSQBsn7GHnBtEgI/s919/mAdd1.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;747&quot; data-original-width=&quot;919&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiT31Y0LjgJuAKzFSsIZu8ZVuN9Kq9XCO7Yt3PLBRXBzCKXKk9W9BTSQFA9AR9jLtGSWWFo7bg4nON_Z1MzJD_OIawaoxej-j9An6jRgTa1KcmUCO4pv3mM9EppMB8kVSQBsn7GHnBtEgI/s600/mAdd1.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;pre class=&quot;brush: java&quot;&gt;

&lt;b&gt;&lt;i&gt;# MULTIPLICATION OF MATRIX ELEMENTS USING METHOD(taking input from user)&lt;/i&gt;&lt;/b&gt;

//NOTE:To Multiply matrix elements, rows and coloumns of both matrices must be same. 


import java.util.*;
public class MulMatrix {
	void mulMatrix()
	{
		Scanner s = new Scanner(System.in);
		 System.out.println(&quot;Enter matrix rows&quot;);
		 	int m = s.nextInt();
		 System.out.println(&quot;Enter matrix coloumn&quot;);
		 	int n = s.nextInt();	 
		 	int a[][] = new int[m][n]; 
		 	int b[][] = new int[m][n];
		 	int c[][] = new int[m][n];
		 System.out.println(&quot;Enter 1st matrix elements..&quot;);
		 	for(int i=0; i&amp;lt;m;i++)
			{
				for(int j=0; j&amp;lt;n;j++)
					a[i][j]=s.nextInt();
			}		 
		 System.out.println(&quot;Enter 2nd matrix elements..&quot;);
		  for(int i=0; i&amp;lt;m;i++)
			{
				for(int j=0; j&amp;lt;n;j++)
						b[i][j]=s.nextInt();
			}	
		 System.out.println(&quot;Multiplication of two Matrices&quot;);
		 	for(int i=0; i&amp;lt;m;i++)
			{
				for(int j=0; j&amp;lt;n;j++)
				{
					c[i][j]=0;
					for(int k=0; k&amp;lt;n; k++)
						c[i][j]+=a[i][k]*b[k][j];
				}
			}
		 	for(int i=0; i&amp;lt;m;i++)
			{
				for(int j=0; j&amp;lt;n;j++)
					System.out.print(c[i][j] +&quot; &quot;);
				System.out.println();
			}
	}
	public static void main(String[] args) 
	{
		MulMatrix obj = new MulMatrix();
		obj.mulMatrix();
	}
}

&lt;b&gt;&lt;b&gt;OUTPUT&lt;/b&gt;&lt;/b&gt;

Enter matrix rows
3
Enter matrix coloumn
3
Enter 1st matrix elements..
1
2
3
4
5
6
7
8
9
Enter 2nd matrix elements..
9
8
7
6
5
4
3
2
1
Multiplication of two Matrices
30 24 18 
84 69 54 
138 114 90 
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhShVrDaBpOvAv2T7Eih2XPn6NcyA3jQWneI-fwlR3TiY_qpiq6BxjVQbHRGbVmcqy2RiVLXzi8It-cNagfyYJxIypVY0rKUod2JzovuyF9JPp0IfgorAYRoWTyXFO_5udZs6pIg46sz6Q/s1363/mul.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;747&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhShVrDaBpOvAv2T7Eih2XPn6NcyA3jQWneI-fwlR3TiY_qpiq6BxjVQbHRGbVmcqy2RiVLXzi8It-cNagfyYJxIypVY0rKUod2JzovuyF9JPp0IfgorAYRoWTyXFO_5udZs6pIg46sz6Q/s600/mul.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGnp6mvOB1WKiT_YEdPGiAZhb-SPs6IeIzeWusz21JI8UZo_KMLvtn-PFG0ognP0wybtFnM9CxYFQi-ieHffPcfFSB6MNuhevDgI2yvdyNGYKiad89YLmRGCYBrQdls8PSVC0Xw6E2jOc/s1365/1mul.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;743&quot; data-original-width=&quot;1365&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGnp6mvOB1WKiT_YEdPGiAZhb-SPs6IeIzeWusz21JI8UZo_KMLvtn-PFG0ognP0wybtFnM9CxYFQi-ieHffPcfFSB6MNuhevDgI2yvdyNGYKiad89YLmRGCYBrQdls8PSVC0Xw6E2jOc/s600/1mul.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/8853649826515261476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2021/01/matrix-addition-subtraction.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/8853649826515261476'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/8853649826515261476'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2021/01/matrix-addition-subtraction.html' title='Matrix Addition, Subtraction, Multiplication methods'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivWVnExW3-58OBnv73FIUXPmQtm3_pOWjBYO-bCFSL9qjpX7gMkvMjYO3CSCs-iaxCs5jnaKGstpqkdQ5fm9z2ghEXCX4pcLFTAFKQ4ZMKjEKgUxsbda0-QUcO1UNOqxrEDCYEhVXEgzc/s72-c/mSub.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-4046079744335780007</id><published>2020-12-30T19:52:00.006+05:30</published><updated>2021-01-06T16:21:10.401+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Pattern"/><title type='text'>Pattern 1, 2, 3 and 4</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-1-2-3-and-4.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 1&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class p10 
{
	public static void main(String[] args) 
	{
		for(int i=1; i&amp;lt;=5; i++)
		{
			for(int j=1; j&amp;lt;=5;j++)
			{
				if(i&amp;lt;=j)
					System.out.print(&quot;* &quot;);
				else
					System.out.print(&quot;  &quot;);
			}
		System.out.println();
		}
	}
}

&lt;b&gt;&lt;b&gt;OUTPUT&lt;/b&gt;&lt;/b&gt;

* * * * * 
  * * * * 
    * * * 
      * * 
        * 
&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9Wo_ULIBOIXkup1hyWFf1JI2NebUEFbhaZ39ZFL3qjrfX68kfFlWk0wVrReke3vjqtAiAm3hZ5iDxtxvXy1yMxw6RvBbEYqYtZElud2HAQfHH17fYPpy8N-KStKCbMHatiQpnyx0mPLw/s1365/p10.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;747&quot; data-original-width=&quot;1365&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9Wo_ULIBOIXkup1hyWFf1JI2NebUEFbhaZ39ZFL3qjrfX68kfFlWk0wVrReke3vjqtAiAm3hZ5iDxtxvXy1yMxw6RvBbEYqYtZElud2HAQfHH17fYPpy8N-KStKCbMHatiQpnyx0mPLw/s600/p10.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-1-2-3-and-4.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 2&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt; 
public class P30 
{
	public static void main(String[] args) 
	{
		for(int i=5; i&amp;gt;0; i--)
		{
			for(int j=1; j&amp;lt;=5;j++)
			{
				if(i&amp;gt;=j)
					System.out.print(&quot;* &quot;);
				else
					System.out.print(&quot;  &quot;);
			}
		System.out.println();
		}
	}
}

&lt;b&gt;&lt;b&gt;OUTPUT&lt;/b&gt;&lt;/b&gt;

* * * * * 
* * * *   
* * *     
* *       
*         
&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghhHUTSqmXb90NaIvNz3mwmnhGqpbwcYUgWT6-EDGpPD2sq0vByodrr5cN2Mn3IEl-tzs_J_fF24yHFwGy4edCslDHnTBsiwLjA81nJ6wpp-l7f_m55FYTTH00-8KnzyGogukFF5FSIWA/s1361/p30.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;745&quot; data-original-width=&quot;1361&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghhHUTSqmXb90NaIvNz3mwmnhGqpbwcYUgWT6-EDGpPD2sq0vByodrr5cN2Mn3IEl-tzs_J_fF24yHFwGy4edCslDHnTBsiwLjA81nJ6wpp-l7f_m55FYTTH00-8KnzyGogukFF5FSIWA/s600/p30.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-1-2-3-and-4.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 3&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class P28 
{
	public static void main(String[] args) 
	{
		for(int i=1; i&amp;lt;=5; i++)
		{
			for(int j=1; j&amp;lt;=5;j++)
			{
				if(i&amp;gt;=j)
					System.out.print(&quot;* &quot;);
				else
					System.out.print(&quot;  &quot;);
			}
		System.out.println();
		}
	}
}

&lt;b&gt;&lt;b&gt;OUTPUT&lt;/b&gt;&lt;/b&gt;

*         
* *       
* * *     
* * * *   
* * * * * 
&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivaHlXfpGy_-Lke__CRNK5MmtqXnpxUOYEHBDDAjB0Si085iivpi2dXKF7mvhjO1koPc-sXFzfow2dDQJZ7svyapqgz0fX8-yvGcodp79a-utcJvc3nSADcxDDdfsdqYtgTNGBDcOiXdI/s1363/p28.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;745&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivaHlXfpGy_-Lke__CRNK5MmtqXnpxUOYEHBDDAjB0Si085iivpi2dXKF7mvhjO1koPc-sXFzfow2dDQJZ7svyapqgz0fX8-yvGcodp79a-utcJvc3nSADcxDDdfsdqYtgTNGBDcOiXdI/s600/p28.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-1-2-3-and-4.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 4&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class P29 
{
	public static void main(String[] args) 
	{
		for(int i=5; i&amp;gt;0; i--)
		{
			for(int j=1; j&amp;lt;=5;j++)
			{
				if(i&amp;lt;=j)
					System.out.print(&quot;* &quot;);
				else
					System.out.print(&quot;  &quot;);
			}
		System.out.println();
		}
	}
}

&lt;b&gt;&lt;b&gt;OUTPUT&lt;/b&gt;&lt;/b&gt;

        * 
      * * 
    * * * 
  * * * * 
* * * * *
&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQiAG2zRWCtdPxpId-3ZPmGFgSg-bZgb7TLv3D7d11A2bCmbqb-kN6J17PaOQ9LI3zKtYpM8Wxs92QYyIP0Ru989HG2WFxYU8bRN9wCIJNQ8M2spX8ZTr0TqHG-4E8CQ0KuiMo6j1aO_Y/s1361/p29.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;745&quot; data-original-width=&quot;1361&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQiAG2zRWCtdPxpId-3ZPmGFgSg-bZgb7TLv3D7d11A2bCmbqb-kN6J17PaOQ9LI3zKtYpM8Wxs92QYyIP0Ru989HG2WFxYU8bRN9wCIJNQ8M2spX8ZTr0TqHG-4E8CQ0KuiMo6j1aO_Y/s600/p29.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/4046079744335780007/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/pattern-1-2-3-and-4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/4046079744335780007'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/4046079744335780007'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/pattern-1-2-3-and-4.html' title='Pattern 1, 2, 3 and 4'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9Wo_ULIBOIXkup1hyWFf1JI2NebUEFbhaZ39ZFL3qjrfX68kfFlWk0wVrReke3vjqtAiAm3hZ5iDxtxvXy1yMxw6RvBbEYqYtZElud2HAQfHH17fYPpy8N-KStKCbMHatiQpnyx0mPLw/s72-c/p10.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-4951557912698379651</id><published>2020-12-30T18:49:00.005+05:30</published><updated>2020-12-30T20:08:35.494+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Pattern"/><title type='text'>Pattern 25, 26, 27, 28, 29 and 30</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-25-26-27-28-29-and-30.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 25&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class P22 
{
	public static void main(String[] args) 
	{
		for(int i=5; i&amp;gt;0; i--)
		{
			for(int j=5; j&amp;gt;0;j--)
			{
				if(i&amp;gt;=j)
					System.out.print(j+&quot; &quot;);
				else
					System.out.print(&quot;  &quot;);
			}
		System.out.println();
		}
	}
}
&lt;b&gt;OUTPUT&lt;/b&gt;
5 4 3 2 1 
  4 3 2 1 
    3 2 1 
      2 1 
        1 

&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeIQ6IPclvPanYvvFednvitbHNfDwy6Z-aaA4Cgk7lVsiIDDU1cDN4hfxdAgMdzz9aip1fGktoATMi5vYoNAY5GOALbt5_Ck_0WdB8qtgA7RQDv04uIBuulaQCdli65pp_AaBc8GPk05w/s1363/p22.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;743&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeIQ6IPclvPanYvvFednvitbHNfDwy6Z-aaA4Cgk7lVsiIDDU1cDN4hfxdAgMdzz9aip1fGktoATMi5vYoNAY5GOALbt5_Ck_0WdB8qtgA7RQDv04uIBuulaQCdli65pp_AaBc8GPk05w/s600/p22.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-25-26-27-28-29-and-30.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 26&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class p11 
{
	public static void main(String[] args) 
	{
		for(int i=1; i&amp;lt;=5; i++)
		{
			for(int j=1; j&amp;lt;=5;j++)
			{
				if(i&amp;lt;=j)
					System.out.print(i+&quot; &quot;);
				else
					System.out.print(&quot;  &quot;);
			}
		System.out.println();
		}
	}
}
&lt;b&gt;OUTPUT&lt;/b&gt;
1 1 1 1 1 
  2 2 2 2 
    3 3 3 
      4 4 
        5 

&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMjNEfATvthF-LYPTrgyR67p1J32zvlswVlmvlOcdTUmfC14wiQm5dIVl2Q6haL_eF5tINgJd9-gA5CeXVeZF0jqBgOgy3W_nkJuo2BeN5o8cITM23r-oiCienhFja10fPcFlBq8n46Yo/s1365/p11.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;745&quot; data-original-width=&quot;1365&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMjNEfATvthF-LYPTrgyR67p1J32zvlswVlmvlOcdTUmfC14wiQm5dIVl2Q6haL_eF5tINgJd9-gA5CeXVeZF0jqBgOgy3W_nkJuo2BeN5o8cITM23r-oiCienhFja10fPcFlBq8n46Yo/s600/p11.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-25-26-27-28-29-and-30.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 27&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class p12 
{
	public static void main(String[] args) 
	{
		for(int i=1; i&amp;lt;=5; i++)
		{
			for(int j=1; j&amp;lt;=5;j++)
			{
				if(i&amp;lt;=j)
					System.out.print(j+&quot; &quot;);
				else
					System.out.print(&quot;  &quot;);
			}
		System.out.println();
		}
	}	
}
&lt;b&gt;OUTPUT&lt;/b&gt;
1 2 3 4 5 
  2 3 4 5 
    3 4 5 
      4 5 
        5 

&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9H1oXRCrWFvrJlIz5nVYXYuNMxewautNVBjkcjd5I9jG0Ox7AbBlQC4qMp0fG1VqxoxBqD5spG7klaGykUYQ6Hwhe9ISL_jer2EyR-kLZwliQekscHY5RRDonEKWfPlskxImBkHM6Upc/s1365/p12.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;745&quot; data-original-width=&quot;1365&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9H1oXRCrWFvrJlIz5nVYXYuNMxewautNVBjkcjd5I9jG0Ox7AbBlQC4qMp0fG1VqxoxBqD5spG7klaGykUYQ6Hwhe9ISL_jer2EyR-kLZwliQekscHY5RRDonEKWfPlskxImBkHM6Upc/s600/p12.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-25-26-27-28-29-and-30.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 28&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class p17 
{
	public static void main(String[] args) 
	{
		for(int i=1; i&amp;lt;=5; i++)
		{
			for(int j=1; j&amp;lt;=5;j++)
			{
				if(i&amp;lt;=j)
					System.out.print((char)(64+j)+&quot; &quot;);
				else
					System.out.print(&quot;  &quot;);
			}
		System.out.println();
		}
	}
}
&lt;b&gt;OUTPUT&lt;/b&gt;
A B C D E 
  B C D E 
    C D E 
      D E 
        E 
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjML5YZBHe-5DehN7Zqzqpmio6omlRKFTi48w6-ofd_WbUGFAoaD4KsKwANd0UdoU-1PJFlA1OLu8Tl7fiuV9pYjFrbz7tbBrcziV81azrud-JlnEfYTKprDJdttZxkA9yCBiDkJ8srjgo/s1365/p17.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;743&quot; data-original-width=&quot;1365&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjML5YZBHe-5DehN7Zqzqpmio6omlRKFTi48w6-ofd_WbUGFAoaD4KsKwANd0UdoU-1PJFlA1OLu8Tl7fiuV9pYjFrbz7tbBrcziV81azrud-JlnEfYTKprDJdttZxkA9yCBiDkJ8srjgo/s600/p17.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-25-26-27-28-29-and-30.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 29&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class P21 
{
	public static void main(String[] args) 
	{
		for(int i=5; i&amp;gt;0; i--)
		{
			for(int j=5; j&amp;gt;0;j--)
			{
				if(i&amp;gt;=j)
					System.out.print(i+&quot; &quot;);
				else
					System.out.print(&quot;  &quot;);
			}
		System.out.println();
		}
	}
}
&lt;b&gt;OUTPUT&lt;/b&gt;
5 5 5 5 5 
  4 4 4 4 
    3 3 3 
      2 2 
        1 

&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1psba9B3Uyp04PE3HESZxk51l0IST8mRAvBhkOP1Vpahp62Do3gljbgbmvz6Javp10cnUBxQhu21oVfdd14BzQsJlHL56mgBIA0BVrN1aPM00uc5ZLxMG-GnwgucUI4eGDZlJvqsjmm4/s1363/p21.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;747&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1psba9B3Uyp04PE3HESZxk51l0IST8mRAvBhkOP1Vpahp62Do3gljbgbmvz6Javp10cnUBxQhu21oVfdd14BzQsJlHL56mgBIA0BVrN1aPM00uc5ZLxMG-GnwgucUI4eGDZlJvqsjmm4/s600/p21.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-25-26-27-28-29-and-30.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 30&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class p18 
{
	public static void main(String[] args) 
	{
		for(int i=1; i&amp;lt;=5; i++)
		{
			for(int j=1; j&amp;lt;=5;j++)
			{
				if(i&amp;lt;=j)
					System.out.print((char)(64+i)+&quot; &quot;);
				else
					System.out.print(&quot;  &quot;);
			}
		System.out.println();
		}
	}
}
&lt;b&gt;OUTPUT&lt;/b&gt;
A A A A A 
  B B B B 
    C C C 
      D D 
        E 

&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLgbJP3nGUjAzqw74LQEQGGAyg1mpbqAm041QIO57DNk5s8MhAMGSTQtI1Z_xFRvThZJ-9hSJoe3f6RcsguqwcbxWvLS9lMwPiZbSlsr0XEsRfsW6AeuetPTNbMdfJky9PYjsn_q8ettc/s1363/p18.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;743&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLgbJP3nGUjAzqw74LQEQGGAyg1mpbqAm041QIO57DNk5s8MhAMGSTQtI1Z_xFRvThZJ-9hSJoe3f6RcsguqwcbxWvLS9lMwPiZbSlsr0XEsRfsW6AeuetPTNbMdfJky9PYjsn_q8ettc/s600/p18.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/4951557912698379651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/pattern-25-26-27-28-29-and-30.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/4951557912698379651'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/4951557912698379651'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/pattern-25-26-27-28-29-and-30.html' title='Pattern 25, 26, 27, 28, 29 and 30'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeIQ6IPclvPanYvvFednvitbHNfDwy6Z-aaA4Cgk7lVsiIDDU1cDN4hfxdAgMdzz9aip1fGktoATMi5vYoNAY5GOALbt5_Ck_0WdB8qtgA7RQDv04uIBuulaQCdli65pp_AaBc8GPk05w/s72-c/p22.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-5597392776799088689</id><published>2020-12-30T18:41:00.008+05:30</published><updated>2020-12-30T20:08:44.814+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Pattern"/><title type='text'>Pattern 14, 15, 16, 17, 18 and 19</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-14-15-16-17-18-and-19.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 14&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class p14
{
	public static void main(String[] args) 
	{
		for(int i=1; i&amp;lt;=5; i++)
		{
			for(int j=1; j&amp;lt;=5;j++)
			{
				if(i&amp;gt;=j)
					System.out.print(j+&quot; &quot;);
				else
					System.out.print(&quot;  &quot;);
			}
		System.out.println();
		}
	}
}
&lt;b&gt;OUTPUT&lt;/b&gt;
&lt;b&gt;1         
1 2       
1 2 3     
1 2 3 4   
1 2 3 4 5 &lt;/b&gt;
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhD6RwaxL92w8ZEGe4jPADeZO5MaNz8yzNYY8wKRn9pYHZF_lEeWrpOP88HUMyezPvn2XpUPdfpeYFGYMJLpSHUYy-0jNeGqoEvspQ6QD8QKMK9GspJ107eW_D0hxl0w_mFr8utG3vavFI/s1363/p13.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;745&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhD6RwaxL92w8ZEGe4jPADeZO5MaNz8yzNYY8wKRn9pYHZF_lEeWrpOP88HUMyezPvn2XpUPdfpeYFGYMJLpSHUYy-0jNeGqoEvspQ6QD8QKMK9GspJ107eW_D0hxl0w_mFr8utG3vavFI/s600/p13.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-14-15-16-17-18-and-19.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 15&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class p15 
{
	public static void main(String[] args) 
	{
		for(int i=1; i&amp;lt;=5; i++)
		{
			for(int j=1; j&amp;lt;=5;j++)
			{
				if(i&amp;gt;=j)
					System.out.print(i+&quot; &quot;);
				else
					System.out.print(&quot;  &quot;);
			}
		System.out.println();
		}
	}
}
&lt;b&gt;OUTPUT&lt;/b&gt;
&lt;b&gt;1         
2 2       
3 3 3     
4 4 4 4   
5 5 5 5 5 &lt;/b&gt;
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheFrPDqlwkU16oVJtHEJZcAPLLMIUaEKQP9QQsT4CsxkX4mevSBcE5r_xnizD2bnIPkhqTGi4riG4f2Z0a94BxvjOn0ZrgakCaZfuNSz2hbwO2GAUW3EjCDZZuobf4ZhJAF4CGCTfuLXY/s1363/p14.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;745&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheFrPDqlwkU16oVJtHEJZcAPLLMIUaEKQP9QQsT4CsxkX4mevSBcE5r_xnizD2bnIPkhqTGi4riG4f2Z0a94BxvjOn0ZrgakCaZfuNSz2hbwO2GAUW3EjCDZZuobf4ZhJAF4CGCTfuLXY/s600/p14.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-14-15-16-17-18-and-19.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 16&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class p16 
{
	public static void main(String[] args) 
	{
		for(int i=1; i&amp;lt;=5; i++)
		{
			for(int j=1; j&amp;lt;=5;j++)
			{
				if(i&amp;gt;=j)
					System.out.print((char)(64+j)+&quot; &quot;);
				else
					System.out.print(&quot;  &quot;);
			}
		System.out.println();
		}
	}
}
&lt;b&gt;OUTPUT&lt;/b&gt;
&lt;b&gt;A         
A B       
A B C     
A B C D   
A B C D E&lt;/b&gt; 
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhyphenhyphencxydYSCpS39XZxQiNfpDkzAvtMZ3-pWua9retnglovqSSUqBd1O0AJYi7Dd5yGIOSMFAurpZu4YPL5ObMHWN8xo7mh0ZJqCRGmx30Y9ThZLH03fKrCXOn18pbe5tr26ehzGTW_fBa4/s1363/p15.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;745&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhyphenhyphencxydYSCpS39XZxQiNfpDkzAvtMZ3-pWua9retnglovqSSUqBd1O0AJYi7Dd5yGIOSMFAurpZu4YPL5ObMHWN8xo7mh0ZJqCRGmx30Y9ThZLH03fKrCXOn18pbe5tr26ehzGTW_fBa4/s600/p15.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-14-15-16-17-18-and-19.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 17&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class P17 
{
	public static void main(String[] args) 
	{
		for(int i=5; i&amp;gt;0; i--)
		{
			for(int j=5; j&amp;gt;0;j--)
			{
				if(i&amp;lt;=j)
					System.out.print(i+&quot; &quot;);
				else
					System.out.print(&quot;  &quot;);
			}
		System.out.println();
		}
	}
}
&lt;b&gt;OUTPUT&lt;/b&gt;
&lt;b&gt;5         
4 4       
3 3 3     
2 2 2 2   
1 1 1 1 1&lt;/b&gt; 
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5mUuAP7vdg2BCJUuA-6I2neKmVkckvMDLaJRwIx90T1niFeqD8dRhE00cMERgAbbZLi-mSruzwTRDPFRo5WQyCIuzITYqCPkU4jhq0CfWOIMbbWDk3VrMLNNiOs5vdlPG-Dr5NofsX7M/s1365/p20.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;745&quot; data-original-width=&quot;1365&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5mUuAP7vdg2BCJUuA-6I2neKmVkckvMDLaJRwIx90T1niFeqD8dRhE00cMERgAbbZLi-mSruzwTRDPFRo5WQyCIuzITYqCPkU4jhq0CfWOIMbbWDk3VrMLNNiOs5vdlPG-Dr5NofsX7M/s600/p20.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-14-15-16-17-18-and-19.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 18&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class P18 
{
	public static void main(String[] args) 
	{
		for(int i=5; i&amp;gt;0; i--)
		{
			for(int j=5; j&amp;gt;0;j--)
			{
				if(i&amp;lt;=j)
					System.out.print(j+&quot; &quot;);
				else
					System.out.print(&quot;  &quot;);
			}
		System.out.println();
		}
	}
}
&lt;b&gt;OUTPUT&lt;/b&gt;
&lt;b&gt;5         
5 4       
5 4 3     
5 4 3 2   
5 4 3 2 1 &lt;/b&gt;
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic2anBFL7mN-PXS8lQSbIEtAgw2s_ztvpUw3RVKtlpHgT5B5YZePvn1ooM7pIQzVuMi9zncbxVLFsFflucDiJ3xfiYFPhq-DoV3smZVyJK-iUlqHckCXs9-fvbPFd0DfxGbESeFwYuPhs/s1365/p19.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;745&quot; data-original-width=&quot;1365&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic2anBFL7mN-PXS8lQSbIEtAgw2s_ztvpUw3RVKtlpHgT5B5YZePvn1ooM7pIQzVuMi9zncbxVLFsFflucDiJ3xfiYFPhq-DoV3smZVyJK-iUlqHckCXs9-fvbPFd0DfxGbESeFwYuPhs/s600/p19.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-14-15-16-17-18-and-19.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 19&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class p16 
{
	public static void main(String[] args) 
	{
		for(int i=1; i&amp;lt;=5; i++)
		{
			for(int j=1; j&amp;lt;=5;j++)
			{
				if(i&amp;gt;=j)
					System.out.print((char)(64+i)+&quot; &quot;);
				else
					System.out.print(&quot;  &quot;);
			}
		System.out.println();
		}
	}
}
&lt;b&gt;OUTPUT&lt;/b&gt;
&lt;b&gt;A         
B B       
C C C     
D D D D   
E E E E E &lt;/b&gt;
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBKHXjEAxpbsNFhB3_Y8JAQbNyOYYjms4sBHXeXe80LulEzag6WvCdbx9u6CR8etRbGw-_CLr1Gs0VoMEw5ww0dSokBCjCo5CegVnH1J3ytQMTRywEpymz6M2WguHAyv0DqtyuCsyBw6A/s1363/p16.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;743&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBKHXjEAxpbsNFhB3_Y8JAQbNyOYYjms4sBHXeXe80LulEzag6WvCdbx9u6CR8etRbGw-_CLr1Gs0VoMEw5ww0dSokBCjCo5CegVnH1J3ytQMTRywEpymz6M2WguHAyv0DqtyuCsyBw6A/s600/p16.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/5597392776799088689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/pattern-14-15-16-17-18-and-19.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/5597392776799088689'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/5597392776799088689'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/pattern-14-15-16-17-18-and-19.html' title='Pattern 14, 15, 16, 17, 18 and 19'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhD6RwaxL92w8ZEGe4jPADeZO5MaNz8yzNYY8wKRn9pYHZF_lEeWrpOP88HUMyezPvn2XpUPdfpeYFGYMJLpSHUYy-0jNeGqoEvspQ6QD8QKMK9GspJ107eW_D0hxl0w_mFr8utG3vavFI/s72-c/p13.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-8481446297721755930</id><published>2020-12-24T12:57:00.016+05:30</published><updated>2021-02-15T14:41:12.991+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Pattern"/><title type='text'>Pattern 12 &amp; 13</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-12-13.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 12&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
import java.util.*;
public class p8 {
	public static void main(String[] args) 
	{
		Scanner s = new Scanner(System.in);
		System.out.println(&quot;Enter How many rows you want?&quot;);
		int n=s.nextInt();
		
		for(int i=1; i&amp;lt;=n; i++)
		{
			for(int j=1; j&amp;lt;=n-i;j++)
			{
				System.out.print(&quot; &quot;);
			}	
			for(int j=1; j&amp;lt;=2*i-1;j++)
			{
				if(i%2==0 &amp;amp;&amp;amp; (j==1||j==(i*2-1)))
					System.out.print(&quot;+&quot;);
				else
					System.out.print(&quot;*&quot;);
			}
		System.out.println();
		}
	}
}

&lt;b&gt;OUTPUT&lt;/b&gt;
&lt;b&gt;       *
      +*+
     *****
    +*****+
   *********
  +*********+
 *************
+*************+
&lt;/b&gt;
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX0U6X0lJNYGZIwZjqQOpxuVKlHfLs-KrlrEiCzVKAGuWhLQvAScS1dkksHvMDI9w9-CSTRXy9OO1vcS2Y6hup1ccV6pUqz_X1zc_AFZgYYjmED9vIm2kI1PQ2wErJokWm15pmKUgmoCI/s1365/p8.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;747&quot; data-original-width=&quot;1365&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX0U6X0lJNYGZIwZjqQOpxuVKlHfLs-KrlrEiCzVKAGuWhLQvAScS1dkksHvMDI9w9-CSTRXy9OO1vcS2Y6hup1ccV6pUqz_X1zc_AFZgYYjmED9vIm2kI1PQ2wErJokWm15pmKUgmoCI/s600/p8.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-12-13.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 13&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;

import java.util.*;
public class p9 {
	public static void main(String[] args) 
	{
		Scanner s = new Scanner(System.in);
		System.out.println(&quot;Enter How many rows you want?&quot;);
		int n=s.nextInt();
		
		for(int i=n; i&amp;gt;0; i--)
		{
			for(int j=1; j	&amp;lt;=n-i;j++)
			{
				System.out.print(&quot; &quot;);
			}	
			for(int j=1; j	&amp;lt;=2*i-1;j++)
			{
				if(i%2==0&amp;amp;&amp;amp;(j==1||j==(i*2-1)))
					System.out.print(&quot;+&quot;);
				else
					System.out.print(&quot;*&quot;);
			}
		System.out.println();
		}
	}
}

&lt;b&gt;OUTPUT&lt;/b&gt;

&lt;b&gt;*************
 +*********+
  *********
   +*****+
    *****
     +*+
      *&lt;/b&gt;
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkgjWOq6-ywF_5wIT1V3Uayh4aG8jvhlxJPJ3rKOMIVWJ8VpsjX0LIlOQWBo0ARbwnS9NCabS7zvL0sg592Kj-QnCiADgdUMCGmhGtD0lqM_gldd0F9q_W8gj7EogEtrtLoy0Dvq_R3Cc/s1365/p9.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;737&quot; data-original-width=&quot;1365&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkgjWOq6-ywF_5wIT1V3Uayh4aG8jvhlxJPJ3rKOMIVWJ8VpsjX0LIlOQWBo0ARbwnS9NCabS7zvL0sg592Kj-QnCiADgdUMCGmhGtD0lqM_gldd0F9q_W8gj7EogEtrtLoy0Dvq_R3Cc/s600/p9.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/8481446297721755930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/pattern-12-13.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/8481446297721755930'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/8481446297721755930'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/pattern-12-13.html' title='Pattern 12 &amp; 13'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX0U6X0lJNYGZIwZjqQOpxuVKlHfLs-KrlrEiCzVKAGuWhLQvAScS1dkksHvMDI9w9-CSTRXy9OO1vcS2Y6hup1ccV6pUqz_X1zc_AFZgYYjmED9vIm2kI1PQ2wErJokWm15pmKUgmoCI/s72-c/p8.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-8943173038362081747</id><published>2020-12-20T17:22:00.014+05:30</published><updated>2020-12-23T14:54:22.380+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Pattern"/><title type='text'>Pattern 8, 9, 10 and 11</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-8-9-10-and-11.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 8&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class p3 
{
	public static void main(String[] args) 
	{
		for(int i=1; i&amp;lt;=5; i++)
		{
			for(int j=1; j&amp;lt;=5;j++)
			{
				if(i==j)
					System.out.print(&quot;1 &quot;);
				else
					System.out.print(&quot;0 &quot;);
			}
		System.out.println();
		}
	}
}
&lt;b&gt;OUTPUT&lt;/b&gt;

&lt;b&gt;1 0 0 0 0 
0 1 0 0 0 
0 0 1 0 0 
0 0 0 1 0 
0 0 0 0 1 &lt;/b&gt;
&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxeY5vKGdN4bfO-qL4SVMKvrDXLkwduLqHv-_1XCPFaBhM4K7pp64xQoolxMCbV4rdQTEnFqmucqicwyNJSOzVAc9uRQZqwOmY80Wrh0yJ7OtncFOCpKEovkuhIVGEiQow85rqI8sAPr0/s1363/p3.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;745&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxeY5vKGdN4bfO-qL4SVMKvrDXLkwduLqHv-_1XCPFaBhM4K7pp64xQoolxMCbV4rdQTEnFqmucqicwyNJSOzVAc9uRQZqwOmY80Wrh0yJ7OtncFOCpKEovkuhIVGEiQow85rqI8sAPr0/s600/p3.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-8-9-10-and-11.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 9&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;

public class p5 
{
	public static void main(String[] args) 
	{
		for(int i=1; i&amp;lt;=5; i++)
		{
			for(int j=1; j&amp;lt;=5;j++)
			{
				if(i&amp;lt;=j)
					System.out.print(&quot;1 &quot;);
				else
					System.out.print(&quot;0 &quot;);
			}
		System.out.println();
		}
	}
}
&lt;b&gt;OUTPUT&lt;/b&gt;

&lt;b&gt;1 1 1 1 1 
0 1 1 1 1 
0 0 1 1 1 
0 0 0 1 1 
0 0 0 0 1 &lt;/b&gt;
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA43tTXgLU-HYsRNFbbuf6_w5pnR-pEtReAAeDI_SfxUSUW_re4NFcyeO0vX_m2xKsuHQh22B7rcZXSNMJZFzb7GrRBe_OPmJUzOed9HgFgOPNr1zEqlh3wrSiYybKWgJwzt9ke5C5WkE/s1363/p5.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;747&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA43tTXgLU-HYsRNFbbuf6_w5pnR-pEtReAAeDI_SfxUSUW_re4NFcyeO0vX_m2xKsuHQh22B7rcZXSNMJZFzb7GrRBe_OPmJUzOed9HgFgOPNr1zEqlh3wrSiYybKWgJwzt9ke5C5WkE/s600/p5.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-8-9-10-and-11.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 10&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class p6 
{
	public static void main(String[] args) 
	{
		for(int i=1; i&amp;lt;=5; i++)
		{
			for(int j=1; j&amp;lt;=5;j++)
			{
				if(j&amp;lt;=i)
					System.out.print(&quot;1 &quot;);
				else
					System.out.print(&quot;0 &quot;);
			}
		System.out.println();
		}
	}
}

&lt;b&gt;OUTPUT&lt;/b&gt;

&lt;b&gt;1 0 0 0 0 
1 1 0 0 0 
1 1 1 0 0 
1 1 1 1 0 
1 1 1 1 1 &lt;/b&gt;
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkYDxv-7DUYCCpZrm_eQsNhIfESuaEgKvxvjo41rlWyDzHdwKWNoH8-M7P1v7tARJ5dDWmgr5A7IyHRXJcyTlizmKN9Q_yCFJ4LBpleLCTmW06Y78ygC_VA-YnEX7SBYaq0caBdC_Gip0/s1361/p6.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;751&quot; data-original-width=&quot;1361&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkYDxv-7DUYCCpZrm_eQsNhIfESuaEgKvxvjo41rlWyDzHdwKWNoH8-M7P1v7tARJ5dDWmgr5A7IyHRXJcyTlizmKN9Q_yCFJ4LBpleLCTmW06Y78ygC_VA-YnEX7SBYaq0caBdC_Gip0/s600/p6.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-8-9-10-and-11.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 11&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class p7 {
	public static void main(String[] args) 
	{
		for(int i=1; i&amp;lt;=5; i++)
		{
			for(int j=1; j&amp;lt;=5;j++)
			{
				if(i==j)
					System.out.print(&quot;* &quot;);
				else if(i&amp;lt;j)
					System.out.print(&quot;1 &quot;);
				else
					System.out.print(&quot;o &quot;);
			}
		System.out.println();
		}
	}
}

&lt;b&gt;OUTPUT&lt;/b&gt;

&lt;b&gt;* 1 1 1 1 
o * 1 1 1 
o o * 1 1 
o o o * 1 
o o o o * &lt;/b&gt;
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOTTnxpElG-WW_zU0i_aLJ-wHXSY3GfXJFJx_K-ZHUWR0rrh0QDtRTi6HMUDvgGtIpxwlHFcywt5ucQnbCCWBk0pvEO3NLE-Ye4ehA9QncN_dJ-Jx0dBuJ4bC54PZl9In7Xy3JtjKcXuk/s1361/p7.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;751&quot; data-original-width=&quot;1361&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOTTnxpElG-WW_zU0i_aLJ-wHXSY3GfXJFJx_K-ZHUWR0rrh0QDtRTi6HMUDvgGtIpxwlHFcywt5ucQnbCCWBk0pvEO3NLE-Ye4ehA9QncN_dJ-Jx0dBuJ4bC54PZl9In7Xy3JtjKcXuk/s600/p7.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div&gt;
  Pattern 1 &amp; 2
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/8943173038362081747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/pattern-8-9-10-and-11.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/8943173038362081747'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/8943173038362081747'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/pattern-8-9-10-and-11.html' title='Pattern 8, 9, 10 and 11'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxeY5vKGdN4bfO-qL4SVMKvrDXLkwduLqHv-_1XCPFaBhM4K7pp64xQoolxMCbV4rdQTEnFqmucqicwyNJSOzVAc9uRQZqwOmY80Wrh0yJ7OtncFOCpKEovkuhIVGEiQow85rqI8sAPr0/s72-c/p3.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-4236568241091895009</id><published>2020-12-20T17:03:00.012+05:30</published><updated>2020-12-22T16:15:56.538+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Pattern"/><title type='text'>Pattern 5, 6 and 7</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-5-6-and-7.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 5&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class p1 
{
	public static void main(String[] args) 
	{
		for(int i=1; i&amp;lt;=5; i++)
		{
			for(int j=1; j&amp;lt;=5;j++)
			{
				System.out.print(&quot;*  &quot;);
			}
		System.out.println();
		}
	}
}

&lt;b&gt;OUTPUT&lt;/b&gt;

&lt;b&gt;*  *  *  *  *  
*  *  *  *  *  
*  *  *  *  *  
*  *  *  *  *  
*  *  *  *  *&lt;/b&gt; 
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifaHzW4ILR6H5x9Ns-Z6XT8zs-ZQpHV1CuavboLwJ93bMGBsxKNsap3Z1ZUg365ayNhcI2486FpReuTfFSBNsvoV12UN-daI6Z2VKoAnQWu6hr009i6IS-X_9ccBVzURU6aKYtftsFSjE/s1359/p1.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;743&quot; data-original-width=&quot;1359&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifaHzW4ILR6H5x9Ns-Z6XT8zs-ZQpHV1CuavboLwJ93bMGBsxKNsap3Z1ZUg365ayNhcI2486FpReuTfFSBNsvoV12UN-daI6Z2VKoAnQWu6hr009i6IS-X_9ccBVzURU6aKYtftsFSjE/s600/p1.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-5-6-and-7.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 6&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class p2 
{
	public static void main(String[] args) 
	{
		for(int i=1; i&amp;lt;=5; i++)
		{
			for(int j=1; j&amp;lt;=5;j++)
			{
				System.out.print(i+&quot;  &quot;);
			}
		System.out.println();
		}
	}
}

&lt;b&gt;OUTPUT&lt;/b&gt;

&lt;b&gt;1  1  1  1  1  
2  2  2  2  2  
3  3  3  3  3  
4  4  4  4  4  
5  5  5  5  5 &lt;/b&gt; 
&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9g9QAdWpZ_mW0HX8SvgPYGMDubFVglPORf0yJ00S3dqnpLo7u2y7CfCWRJF3PeVEhQ5lvyjdgQelD16b77TLRoLW-n7OZSejXV_DdU_pUq6IdFVVcWvViLSwZloOQDt1FIAtvgxM14Ig/s1355/p2.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;749&quot; data-original-width=&quot;1355&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9g9QAdWpZ_mW0HX8SvgPYGMDubFVglPORf0yJ00S3dqnpLo7u2y7CfCWRJF3PeVEhQ5lvyjdgQelD16b77TLRoLW-n7OZSejXV_DdU_pUq6IdFVVcWvViLSwZloOQDt1FIAtvgxM14Ig/s600/p2.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-5-6-and-7.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 7&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class p4 
{
	public static void main(String[] args) 
	{
		for(int i=1; i&amp;lt;=5; i++)
		{
			for(int j=1; j&amp;lt;=5;j++)
			{
				System.out.print(j+&quot;  &quot;);
			}
		System.out.println();
		}
	}
}

&lt;b&gt;OUTPUT&lt;/b&gt;

&lt;b&gt;1  2  3  4  5  
1  2  3  4  5  
1  2  3  4  5  
1  2  3  4  5  
1  2  3  4  5&lt;/b&gt;
&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDMvJD39Cm0vLO8V7OE0fTbIFFZZjARlKFAd6Xogbh35NlnV77FEXcRCWO47SsczGPkbI2qR1hu8FbBK-aq_PDzuUVcagcqrbuEGgFLngW_vdNfD2zv9Hze8OwFoaU6kBTqHgeF6uqVPE/s1363/p4.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;755&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDMvJD39Cm0vLO8V7OE0fTbIFFZZjARlKFAd6Xogbh35NlnV77FEXcRCWO47SsczGPkbI2qR1hu8FbBK-aq_PDzuUVcagcqrbuEGgFLngW_vdNfD2zv9Hze8OwFoaU6kBTqHgeF6uqVPE/s600/p4.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/4236568241091895009/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/pattern-5-6-and-7.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/4236568241091895009'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/4236568241091895009'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/pattern-5-6-and-7.html' title='Pattern 5, 6 and 7'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifaHzW4ILR6H5x9Ns-Z6XT8zs-ZQpHV1CuavboLwJ93bMGBsxKNsap3Z1ZUg365ayNhcI2486FpReuTfFSBNsvoV12UN-daI6Z2VKoAnQWu6hr009i6IS-X_9ccBVzURU6aKYtftsFSjE/s72-c/p1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-9168249118466633805</id><published>2020-12-17T12:48:00.007+05:30</published><updated>2020-12-22T16:14:52.072+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Pattern"/><title type='text'>Pattern 23 and 24</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-23-and-24.html&quot; target=&quot;_blank&quot;&gt;
   Pattern 23&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class P23 {
	public static void main(String[] args) 
	{
		for(int i=1; i&amp;lt;6; i++)
		{
			for(int j=i; j&amp;lt;6; j++)
			{
				System.out.print(j + &quot; &quot;);
			}
			for(int k=1; k&amp;lt;i; k++)
			{
				System.out.print(k + &quot; &quot;);
			}
			System.out.println();
		}
	}	
}

&lt;b&gt;OUTPUT&lt;/b&gt;

1 2 3 4 5 
2 3 4 5 1 
3 4 5 1 2 
4 5 1 2 3 
5 1 2 3 4 
&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPdXBryZeJJxVCR0BtNTH-TPlFqr-VWF93NKCVj4LQfzIhAokXhE7mGdL8-tdmi1IEAyEIGs1NSQaP7dGCBvwNz0V-DblQuoNjxxQmoFhpH8dukVbRyBsNObt3qQYli8pU-o0dpDHUJ00/s1365/p23.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;749&quot; data-original-width=&quot;1365&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPdXBryZeJJxVCR0BtNTH-TPlFqr-VWF93NKCVj4LQfzIhAokXhE7mGdL8-tdmi1IEAyEIGs1NSQaP7dGCBvwNz0V-DblQuoNjxxQmoFhpH8dukVbRyBsNObt3qQYli8pU-o0dpDHUJ00/s600/p23.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/pattern-23-and-24.html&quot; target=&quot;_blank&quot;&gt;
    Pattern 24&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class P24 
{
	public static void main(String[] args) 
	{
		for(int i=5; i&amp;gt;0; i--)
		{
			for(int j=i; j&amp;lt;6; j++)
			{
				System.out.print(j + &quot; &quot;);
			}
			for(int k=1; k&amp;lt;i; k++)
			{
				System.out.print(k + &quot; &quot;);
			}
			System.out.println();
		}
	}
}

&lt;b&gt;OUTPUT&lt;/b&gt;

5 1 2 3 4 
4 5 1 2 3 
3 4 5 1 2 
2 3 4 5 1 
1 2 3 4 5 
&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMLOzpgS6OnPoR67mOhlNEVN9XlqNiKQGOeXzeWYcBBch3ofzMLPqpgqabqp-HoJRkgNb_FS-7XJjFzylAwHi5WTTu2ZMnoxW4wTTClE40Utfzl-n31_j8A7m9HuUsS3fUgaPpDuUW_zc/s1365/p24.png&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;747&quot; data-original-width=&quot;1365&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMLOzpgS6OnPoR67mOhlNEVN9XlqNiKQGOeXzeWYcBBch3ofzMLPqpgqabqp-HoJRkgNb_FS-7XJjFzylAwHi5WTTu2ZMnoxW4wTTClE40Utfzl-n31_j8A7m9HuUsS3fUgaPpDuUW_zc/s600/p24.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/9168249118466633805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/pattern-23-and-24.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/9168249118466633805'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/9168249118466633805'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/pattern-23-and-24.html' title='Pattern 23 and 24'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPdXBryZeJJxVCR0BtNTH-TPlFqr-VWF93NKCVj4LQfzIhAokXhE7mGdL8-tdmi1IEAyEIGs1NSQaP7dGCBvwNz0V-DblQuoNjxxQmoFhpH8dukVbRyBsNObt3qQYli8pU-o0dpDHUJ00/s72-c/p23.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-4922896944456222403</id><published>2020-12-11T23:14:00.014+05:30</published><updated>2020-12-23T14:35:50.656+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="easy code series"/><title type='text'>Armstrong numbers from 1 to 1000</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/armstrong-numbers-from-1-to-1000.html&quot; target=&quot;_blank&quot;&gt;
    Write a Java Program to display Armstrong numbers from 1 to 1000&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;

&lt;pre class=&quot;brush: java&quot;&gt;
public class Armstrong1to1000 {
	public static void main(String[] args) {
		System.out.println(&quot;Amstrong Numbers From 1 to 1000&quot;);
		int a,r;
		for(int i=1; i&amp;lt;=1000;i++)
		{
			a=0;
			int n=i;
			while(n!=0) 
			{
				r=n%10;
				a=a+r*r*r;
				n=n/10;
			}
			if(a==i)
			{
				System.out.println(i);
			}
		}
	}
}

&lt;b&gt;OUTPUT:&lt;/b&gt;

Amstrong Numbers From 1 to 1000
1
153
370
371
407
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWPqFkEsSJhIq51UxYkuzh1p2_WRECfDFBt5J1V6-iNMIVmyK6mmYfTv1pvi_stBothAc3FkTwPVD-iBkm-kI1AKyyVB83ntg41Vj0UHnXmJEfFb9lzbgYRPzTsdXDS1y18I-2VqVPIq8/s1363/AmstrongFrom1to1000.png&quot; 
       style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;
  &lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;747&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWPqFkEsSJhIq51UxYkuzh1p2_WRECfDFBt5J1V6-iNMIVmyK6mmYfTv1pvi_stBothAc3FkTwPVD-iBkm-kI1AKyyVB83ntg41Vj0UHnXmJEfFb9lzbgYRPzTsdXDS1y18I-2VqVPIq8/s600/AmstrongFrom1to1000.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div&gt;
  &lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/armstrong-numbers-from-1-to-1000.html&quot; target=&quot;_blank&quot;&gt;
    Armstrong numbers from 1 to 1000&lt;/a&gt;&lt;br&gt;
  &lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/armstrong-number-using-method.html&quot; target=&quot;_blank&quot;&gt;
    Armstrong number using Method&lt;/a&gt;&lt;br&gt;
  &lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/armstrong-number-using-for-loop.html&quot; target=&quot;_blank&quot;&gt;
    Armstrong number using For loop&lt;/a&gt;&lt;br&gt;
  &lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/armstrong-number-using-while-loop.html&quot; target=&quot;_blank&quot;&gt;
    Armstrong number using while loop&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/4922896944456222403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/armstrong-numbers-from-1-to-1000.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/4922896944456222403'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/4922896944456222403'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/armstrong-numbers-from-1-to-1000.html' title='Armstrong numbers from 1 to 1000'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWPqFkEsSJhIq51UxYkuzh1p2_WRECfDFBt5J1V6-iNMIVmyK6mmYfTv1pvi_stBothAc3FkTwPVD-iBkm-kI1AKyyVB83ntg41Vj0UHnXmJEfFb9lzbgYRPzTsdXDS1y18I-2VqVPIq8/s72-c/AmstrongFrom1to1000.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-3972331196367102290</id><published>2020-12-11T23:13:00.014+05:30</published><updated>2020-12-23T14:45:32.496+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="easy code series"/><title type='text'>Armstrong number using while loop</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/armstrong-number-using-while-loop.html&quot; target=&quot;_blank&quot;&gt;
    Write a Java Program to display Armstrong number using while loop&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;

&lt;pre class=&quot;brush: java&quot;&gt;
import java.util.*;
public class Armstrong {
	public static void main(String[] args) 	{
		Scanner scan = new Scanner(System.in);
		System.out.println(&quot;\nEnter a Number: &quot;);
		int n = scan.nextInt();
		int reminder,amstrong=0,temp=n;
			while(n!=0)			
			{
				reminder=n%10;
				amstrong=amstrong+reminder*reminder*reminder;
				n=n/10;
			}
		if(temp==amstrong)
		{
		System.out.println(&quot;\n&quot;+temp+&quot; is an amstrong number&quot;);
		}
		else
		{
		System.out.println(&quot;\n&quot;+temp+&quot; is not an amstrong number&quot;);
		}
	}
}

&lt;b&gt;OUTPUT 1:&lt;/b&gt;

Enter a Number: 
591

591 is not an amstrong number

&lt;b&gt;OUTPUT 2:&lt;/b&gt;

Enter a Number: 
370

370 is an amstrong number
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgxb0Um8Bll2NeCUzQiXnTFf6NqiypaBEJ5-Y07vWtuZ5PccxXFjRKI8b_mSy_j4-UjyYLussXZI1tycIQp4VQGYAafJCkywmSo2pzHHPiYT44puA5eGwdlWYeHysfNqavVKeXbmAgPH0/s1363/amstrongWhile.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;   
    &lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;745&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgxb0Um8Bll2NeCUzQiXnTFf6NqiypaBEJ5-Y07vWtuZ5PccxXFjRKI8b_mSy_j4-UjyYLussXZI1tycIQp4VQGYAafJCkywmSo2pzHHPiYT44puA5eGwdlWYeHysfNqavVKeXbmAgPH0/s600/amstrongWhile.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div&gt;
  &lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/armstrong-numbers-from-1-to-1000.html&quot; target=&quot;_blank&quot;&gt;
    Armstrong numbers from 1 to 1000&lt;/a&gt;&lt;br&gt;
  &lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/armstrong-number-using-method.html&quot; target=&quot;_blank&quot;&gt;
    Armstrong number using Method&lt;/a&gt;&lt;br&gt;
  &lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/armstrong-number-using-for-loop.html&quot; target=&quot;_blank&quot;&gt;
    Armstrong number using For loop&lt;/a&gt;&lt;br&gt;
  &lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/armstrong-number-using-while-loop.html&quot; target=&quot;_blank&quot;&gt;
    Armstrong number using while loop&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;

</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/3972331196367102290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/armstrong-number-using-while-loop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/3972331196367102290'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/3972331196367102290'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/armstrong-number-using-while-loop.html' title='Armstrong number using while loop'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgxb0Um8Bll2NeCUzQiXnTFf6NqiypaBEJ5-Y07vWtuZ5PccxXFjRKI8b_mSy_j4-UjyYLussXZI1tycIQp4VQGYAafJCkywmSo2pzHHPiYT44puA5eGwdlWYeHysfNqavVKeXbmAgPH0/s72-c/amstrongWhile.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-2513362487275528471</id><published>2020-12-11T23:12:00.014+05:30</published><updated>2020-12-23T14:45:40.126+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="easy code series"/><title type='text'>Armstrong number using For loop</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/armstrong-number-using-for-loop.html&quot; target=&quot;_blank&quot;&gt;
    Write a Java Program to display Armstrong number using For loop&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;

&lt;pre class=&quot;brush: java&quot;&gt;
import java.util.Scanner;
public class ArmstrongFor {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		System.out.println(&quot;\nEnter a Number: &quot;);
		int n = scan.nextInt();
		int reminder,amstrong=0,temp=n;
			for(;n&amp;gt;0;)			
			{
				reminder=n%10;
				amstrong=amstrong+reminder*reminder*reminder;
				n=n/10;
			}
		if(temp==amstrong)
		{
			System.out.println(&quot;\n&quot;+temp+&quot; is an amstrong number&quot;);
		}
		else
		{
			System.out.println(&quot;\n&quot;+temp+&quot; is not an amstrong number&quot;);
		}
	}
}

&lt;b&gt;OUTPUT:&lt;/b&gt;

Enter a Number: 
591

591 is not an amstrong number

&lt;b&gt;OUTPUT 2:&lt;/b&gt;

Enter a Number: 
370

370 is an amstrong number
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
  
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRragU4D45It_4qri-s00p3qfQIHocYG-NLv44au5C0IalYz8QalD7rPJYLsXHAVavnaMVo_tfqg1uILHRN2kQmPnOeUdfc4zra6xDvANyvuCAkKaJGDNHkvxVI_orljQwAuy6qjwo6-g/s1365/amstrongFor.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;
    
    &lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;747&quot; data-original-width=&quot;1365&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRragU4D45It_4qri-s00p3qfQIHocYG-NLv44au5C0IalYz8QalD7rPJYLsXHAVavnaMVo_tfqg1uILHRN2kQmPnOeUdfc4zra6xDvANyvuCAkKaJGDNHkvxVI_orljQwAuy6qjwo6-g/s600/amstrongFor.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;


&lt;div&gt;
  &lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/armstrong-numbers-from-1-to-1000.html&quot; target=&quot;_blank&quot;&gt;
    Armstrong numbers from 1 to 1000&lt;/a&gt;&lt;br&gt;
  &lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/armstrong-number-using-method.html&quot; target=&quot;_blank&quot;&gt;
    Armstrong number using Method&lt;/a&gt;&lt;br&gt;
  &lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/armstrong-number-using-for-loop.html&quot; target=&quot;_blank&quot;&gt;
    Armstrong number using For loop&lt;/a&gt;&lt;br&gt;
  &lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/armstrong-number-using-while-loop.html&quot; target=&quot;_blank&quot;&gt;
    Armstrong number using while loop&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;

</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/2513362487275528471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/armstrong-number-using-for-loop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/2513362487275528471'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/2513362487275528471'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/armstrong-number-using-for-loop.html' title='Armstrong number using For loop'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRragU4D45It_4qri-s00p3qfQIHocYG-NLv44au5C0IalYz8QalD7rPJYLsXHAVavnaMVo_tfqg1uILHRN2kQmPnOeUdfc4zra6xDvANyvuCAkKaJGDNHkvxVI_orljQwAuy6qjwo6-g/s72-c/amstrongFor.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-1565085291836027279</id><published>2020-12-11T23:11:00.009+05:30</published><updated>2020-12-23T14:49:05.704+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="easy code series"/><title type='text'>Armstrong number using Method</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/armstrong-number-using-method.html&quot; target=&quot;_blank&quot;&gt;
    Write a Java Program to display Armstrong number using Method&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;

&lt;pre class=&quot;brush: java&quot;&gt;
import java.util.Scanner;
public class ArmstrongMethod 
{
	void Amg(int n)
	{
		int reminder,amstrong=0,temp=n;
		while(n!=0)			
		{
			reminder=n%10;
			amstrong=amstrong+reminder*reminder*reminder;
			n=n/10;
		}
	if(temp==amstrong)
		System.out.println(&quot;\n&quot;+temp+&quot; is an amstrong number&quot;);
	else	
		System.out.println(&quot;\n&quot;+temp+&quot; is not an amstrong number&quot;);
	}
	public static void main(String[] args) 
	{
		AmstrongMethod obj = new AmstrongMethod();
		Scanner scan = new Scanner(System.in);
		System.out.println(&quot;\nEnter a Number: &quot;);
		int n = scan.nextInt();
		obj.Amg(n);
	}
}

&lt;b&gt;OUTPUT:&lt;/b&gt;

Enter a Number: 
591

591 is not an amstrong number

&lt;b&gt;OUTPUT 2:&lt;/b&gt;

Enter a Number: 
370

370 is an amstrong number
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUx_sM6WrhfPwY1RYr1jWSui9YMtwBawWXZqPox__LGXiQ1owFYT2XDJG7ZESqqs1a3g-UBwsFMcvML6q3Lwh63el1h0hq-LXGyoloKOMLCVnBY1AqWdq1Sh9Wp5O1E0cqN8sr7AkIIG4/s1365/amstrongMethod.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;
    &lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;745&quot; data-original-width=&quot;1365&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUx_sM6WrhfPwY1RYr1jWSui9YMtwBawWXZqPox__LGXiQ1owFYT2XDJG7ZESqqs1a3g-UBwsFMcvML6q3Lwh63el1h0hq-LXGyoloKOMLCVnBY1AqWdq1Sh9Wp5O1E0cqN8sr7AkIIG4/s600/amstrongMethod.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div&gt;
  &lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/armstrong-numbers-from-1-to-1000.html&quot; target=&quot;_blank&quot;&gt;
    Armstrong numbers from 1 to 1000&lt;/a&gt;&lt;br&gt;
  &lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/armstrong-number-using-method.html&quot; target=&quot;_blank&quot;&gt;
    Armstrong number using Method&lt;/a&gt;&lt;br&gt;
  &lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/armstrong-number-using-for-loop.html&quot; target=&quot;_blank&quot;&gt;
    Armstrong number using For loop&lt;/a&gt;&lt;br&gt;
  &lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/armstrong-number-using-while-loop.html&quot; target=&quot;_blank&quot;&gt;
    Armstrong number using while loop&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/1565085291836027279/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/armstrong-number-using-method.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/1565085291836027279'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/1565085291836027279'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/armstrong-number-using-method.html' title='Armstrong number using Method'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUx_sM6WrhfPwY1RYr1jWSui9YMtwBawWXZqPox__LGXiQ1owFYT2XDJG7ZESqqs1a3g-UBwsFMcvML6q3Lwh63el1h0hq-LXGyoloKOMLCVnBY1AqWdq1Sh9Wp5O1E0cqN8sr7AkIIG4/s72-c/amstrongMethod.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-4195689247412131290</id><published>2020-12-07T21:40:00.021+05:30</published><updated>2021-01-17T11:50:22.680+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="easy code series"/><title type='text'>Factorial of Number without  User Interaction</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-without-user.html&quot; target=&quot;_blank&quot;&gt;
    Write a Java Program to display Factorial of Number without  User Interaction&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;

&lt;pre class=&quot;brush: java&quot;&gt;
public class FactorialWithoutUserInteraction 
{
	public static void main(String[] args) 
	{
		int fact=1;
			for(int i=1;i&amp;lt;=8;i++)
			{
				fact=fact*i;
			}
	System.out.println(&quot;\n Factorial of 8 is = &quot;+fact);
	}
}

&lt;b&gt;Output:&lt;/b&gt;

Factorial of 8 is = 40320

&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju437f9QX4c3hdpqjgdY5Ep1xluEy0_rflWmyMOSALUfsWQmZLyK1o57dGeNgq7KpulJZB4p2a9sbnwsKEICBrh_4CXm__e8ikrgsFJsSgi0AQF-315xwWUOJwINYujDeO6oEGQkoACLg/s1363/factHardCode.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;
  &lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;747&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju437f9QX4c3hdpqjgdY5Ep1xluEy0_rflWmyMOSALUfsWQmZLyK1o57dGeNgq7KpulJZB4p2a9sbnwsKEICBrh_4CXm__e8ikrgsFJsSgi0AQF-315xwWUOJwINYujDeO6oEGQkoACLg/s600/factHardCode.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-for-loop.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using For Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-while-loop.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-do-while-loop.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using Do-While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-method.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using Method&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-recursion.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using Recursion&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-without-user.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number without  User Interaction&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/4195689247412131290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/factorial-of-number-without-user.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/4195689247412131290'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/4195689247412131290'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/factorial-of-number-without-user.html' title='Factorial of Number without  User Interaction'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju437f9QX4c3hdpqjgdY5Ep1xluEy0_rflWmyMOSALUfsWQmZLyK1o57dGeNgq7KpulJZB4p2a9sbnwsKEICBrh_4CXm__e8ikrgsFJsSgi0AQF-315xwWUOJwINYujDeO6oEGQkoACLg/s72-c/factHardCode.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-446001340244784017</id><published>2020-12-07T21:40:00.020+05:30</published><updated>2021-01-17T11:50:07.384+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="easy code series"/><title type='text'>Factorial of Number using Method</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-method.html&quot; target=&quot;_blank&quot;&gt;
    Write a Java Program to display Factorial of Number using Method&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;

&lt;pre class=&quot;brush: java&quot;&gt;
import java.util.*;
public class FactMethod 
{
	void fact(int n)
	{
		int fact=1;
		for(int i=1;i&amp;lt;=n;i++)
		{
			fact=fact*i;
		}
	System.out.println(&quot;\n Factorial of &quot;+n+&quot; is = &quot;+fact);
	}
	public static void main(String[] args) 
	{
		Scanner s = new Scanner(System.in);
		System.out.println(&quot;\n Enter Number...&quot;);
		int number = s.nextInt();
		FactMethod obj = new FactMethod();
		obj.fact(number);
	}
}

&lt;b&gt;Output:&lt;/b&gt;

Enter Number...
5

 Factorial of 5 is = 120
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrfXCLEK06WqpHgzmH6LwdPYOJ_ch7EFyUQ9r688N8mhpTVIGl4VUI0hpdFY5YRpcoPZMg-h62_xq7QfEDddZv5wF9dOBKfYvkhFz4ZbxeNKivO2yU4v-g6ocBH_F27N-KNdeoVQJ4Fzs/s1363/factMethod.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;
    &lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;747&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrfXCLEK06WqpHgzmH6LwdPYOJ_ch7EFyUQ9r688N8mhpTVIGl4VUI0hpdFY5YRpcoPZMg-h62_xq7QfEDddZv5wF9dOBKfYvkhFz4ZbxeNKivO2yU4v-g6ocBH_F27N-KNdeoVQJ4Fzs/s600/factMethod.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-for-loop.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using For Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-while-loop.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-do-while-loop.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using Do-While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-method.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using Method&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-recursion.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using Recursion&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-without-user.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number without  User Interaction&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/446001340244784017/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-method.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/446001340244784017'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/446001340244784017'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-method.html' title='Factorial of Number using Method'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrfXCLEK06WqpHgzmH6LwdPYOJ_ch7EFyUQ9r688N8mhpTVIGl4VUI0hpdFY5YRpcoPZMg-h62_xq7QfEDddZv5wF9dOBKfYvkhFz4ZbxeNKivO2yU4v-g6ocBH_F27N-KNdeoVQJ4Fzs/s72-c/factMethod.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-1930918627597636154</id><published>2020-12-07T21:39:00.009+05:30</published><updated>2021-01-17T11:50:00.977+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="easy code series"/><title type='text'>Factorial of Number using Do-While Loop</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-do-while-loop.html&quot; target=&quot;_blank&quot;&gt;
    Write a Java Program to display Factorial of Number using Do-While Loop&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;

&lt;pre class=&quot;brush: java&quot;&gt;
import java.util.*;
public class FactDoWhile 
{
	public static void main(String[] args) 
	{
		Scanner s = new Scanner(System.in);
		System.out.println(&quot;\n Enter Number...&quot;);
		int number = s.nextInt();
		int fact=1,i=1;
			do
			{
				fact=fact*i;
				i++;
			}while(i&amp;lt;=number);
	System.out.println(&quot;\n Factorial of &quot;+number+&quot; is = &quot;+fact);
	}
}

&lt;b&gt;Output:&lt;/b&gt;

Enter Number...
6

 Factorial of 6 is = 720
 
 &lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMnoO7xV00QnETaMhyP4fv71_zAvFpZL9K8CT3s6lYuRu_UA5BErPPbVr7MHbBsCoz6Ywv6mKxzwGnd66c2G_-Xt1q9z8cjfUEn6xScWRuLlhNtM6Ah3aQpmFByHE8nPOnr0mxlHZ4Kxw/s1365/factDoWhile.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;
  &lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;747&quot; data-original-width=&quot;1365&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMnoO7xV00QnETaMhyP4fv71_zAvFpZL9K8CT3s6lYuRu_UA5BErPPbVr7MHbBsCoz6Ywv6mKxzwGnd66c2G_-Xt1q9z8cjfUEn6xScWRuLlhNtM6Ah3aQpmFByHE8nPOnr0mxlHZ4Kxw/s600/factDoWhile.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-for-loop.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using For Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-while-loop.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-do-while-loop.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using Do-While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-method.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using Method&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-recursion.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using Recursion&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-without-user.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number without  User Interaction&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/1930918627597636154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-do-while-loop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/1930918627597636154'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/1930918627597636154'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-do-while-loop.html' title='Factorial of Number using Do-While Loop'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMnoO7xV00QnETaMhyP4fv71_zAvFpZL9K8CT3s6lYuRu_UA5BErPPbVr7MHbBsCoz6Ywv6mKxzwGnd66c2G_-Xt1q9z8cjfUEn6xScWRuLlhNtM6Ah3aQpmFByHE8nPOnr0mxlHZ4Kxw/s72-c/factDoWhile.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-3192689165294519900</id><published>2020-12-07T21:38:00.010+05:30</published><updated>2021-01-17T11:49:46.619+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="easy code series"/><title type='text'>Factorial of Number using While Loop</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-while-loop.html&quot; target=&quot;_blank&quot;&gt;
    Write a Java Program to display Factorial of Number using While Loop&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;

&lt;pre class=&quot;brush: java&quot;&gt;
import java.util.*;
public class FactorialWhile 
{
	public static void main(String[] args) 
	{
		Scanner s = new Scanner(System.in);
		System.out.println(&quot;\n Enter Number...&quot;);
		int number = s.nextInt();
		int fact=1,i=1;
			while(i&amp;lt;=number)
			{
				fact=fact*i;
				i++;
			}
	System.out.println(&quot;\n Factorial of &quot;+number+&quot; is = &quot;+fact);
	}
}

&lt;b&gt;Output:&lt;/b&gt;
Enter Number...
7

 Factorial of 7 is = 5040
 &lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitWiVhYnkKGLB089aGsZVNuXkgkLxQy8-uhFLmRBNJ45xismmUMgxw_J3dH8H1aP-xQE-Cg-4N5-IN6OqqFCmiI2rDH1jtnyBsiiPROW5eoL41qetjtWIyiIqRSZrz6ZDfxIs6AI-5Veg/s1363/factWhile.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;743&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitWiVhYnkKGLB089aGsZVNuXkgkLxQy8-uhFLmRBNJ45xismmUMgxw_J3dH8H1aP-xQE-Cg-4N5-IN6OqqFCmiI2rDH1jtnyBsiiPROW5eoL41qetjtWIyiIqRSZrz6ZDfxIs6AI-5Veg/s600/factWhile.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-for-loop.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using For Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-while-loop.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-do-while-loop.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using Do-While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-method.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using Method&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-recursion.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using Recursion&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-without-user.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number without  User Interaction&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/3192689165294519900/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-while-loop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/3192689165294519900'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/3192689165294519900'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-while-loop.html' title='Factorial of Number using While Loop'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitWiVhYnkKGLB089aGsZVNuXkgkLxQy8-uhFLmRBNJ45xismmUMgxw_J3dH8H1aP-xQE-Cg-4N5-IN6OqqFCmiI2rDH1jtnyBsiiPROW5eoL41qetjtWIyiIqRSZrz6ZDfxIs6AI-5Veg/s72-c/factWhile.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-1947048331768250101</id><published>2020-12-07T21:37:00.032+05:30</published><updated>2021-01-17T11:50:15.718+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="easy code series"/><title type='text'>Factorial of Number using Recursion</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-recursion.html&quot; target=&quot;_blank&quot;&gt;
    Write a Java Program to display Factorial of Number using Recursion&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;

&lt;pre class=&quot;brush: java&quot;&gt;
import java.util.*;
public class FactorialRecursion 
{
	int fact(int n)
	{
		if(n==0)
			return 1;
		else
			return(n*fact(n-1));
	}
	public static void main(String[] args) 
	{
		FactorialRecursion obj = new FactorialRecursion();
		Scanner s = new Scanner(System.in);
		System.out.println(&quot;\n Enter Number...&quot;);
		int number = s.nextInt();
		int fact=1;
		fact = obj.fact(number);
	System.out.println(&quot;\n Factorial of &quot;+number+&quot; is = &quot;+fact);
	}
}

&lt;b&gt;Output:&lt;/b&gt;

Enter Number...
4

 Factorial of 4 is = 24
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmQLtidlu7XGSoBqQZQt9PFW5hCxQ0p0AL4I4VnjVES_hut08HCDpEjFxTetWS9kJ3wyYmQ9CtDDPZElTWRGGFmW6wgdRbSYNcZairG9xh0TcIxLQwSOsgPaIU6M6XLWRvufWRSsSgLwg/s1365/factRecursion.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;749&quot; data-original-width=&quot;1365&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmQLtidlu7XGSoBqQZQt9PFW5hCxQ0p0AL4I4VnjVES_hut08HCDpEjFxTetWS9kJ3wyYmQ9CtDDPZElTWRGGFmW6wgdRbSYNcZairG9xh0TcIxLQwSOsgPaIU6M6XLWRvufWRSsSgLwg/s600/factRecursion.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-for-loop.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using For Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-while-loop.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-do-while-loop.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using Do-While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-method.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using Method&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-recursion.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using Recursion&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-without-user.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number without  User Interaction&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/1947048331768250101/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-recursion.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/1947048331768250101'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/1947048331768250101'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-recursion.html' title='Factorial of Number using Recursion'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmQLtidlu7XGSoBqQZQt9PFW5hCxQ0p0AL4I4VnjVES_hut08HCDpEjFxTetWS9kJ3wyYmQ9CtDDPZElTWRGGFmW6wgdRbSYNcZairG9xh0TcIxLQwSOsgPaIU6M6XLWRvufWRSsSgLwg/s72-c/factRecursion.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-6068988297498051416</id><published>2020-12-07T21:37:00.031+05:30</published><updated>2021-01-17T11:49:53.574+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="easy code series"/><title type='text'>Factorial of Number using For Loop</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-for-loop.html&quot; target=&quot;_blank&quot;&gt;
    Write a Java Program to display Factorial of Number using For Loop&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;

&lt;pre class=&quot;brush: java&quot;&gt;
import java.util.*;
public class Factotial 
{
	public static void main(String[] args) 
	{
		Scanner s = new Scanner(System.in);
		System.out.println(&quot;\n Enter Number...&quot;);
		int number = s.nextInt();
		int fact=1;
			for(int i=1;i&amp;lt;=number;i++)
			{
				fact=fact*i;
			}
	System.out.println(&quot;\n Factorial of &quot;+number+&quot; is = &quot;+fact);
	}
}

&lt;b&gt;Output:&lt;/b&gt;

Enter Number...
3

 Factorial of 3 is = 6
 &lt;/pre&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2mDPyABRHYr-FEoOj9Ypy8eAInAP2ZQ7jMxYOvAz7EciV7ESyEpr1g2Dd_XXbH_a5uemhQfNO_bhQPXbYqFfvg9HiTo1X_JVy7JP98ZBLp4KhNvioQQIS8AnEC6Ihw46r3uJ00S6SihM/s1365/factFor.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;600&quot; data-original-height=&quot;745&quot; data-original-width=&quot;1363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2mDPyABRHYr-FEoOj9Ypy8eAInAP2ZQ7jMxYOvAz7EciV7ESyEpr1g2Dd_XXbH_a5uemhQfNO_bhQPXbYqFfvg9HiTo1X_JVy7JP98ZBLp4KhNvioQQIS8AnEC6Ihw46r3uJ00S6SihM/s600/factFor.png&quot;/&gt;&lt;/a&gt;&lt;/div&gt;&lt;/pre&gt;

&lt;div&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-for-loop.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using For Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-while-loop.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-do-while-loop.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using Do-While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-method.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using Method&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-recursion.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number using Recursion&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/factorial-of-number-without-user.html&quot; target=&quot;_blank&quot;&gt;Factorial of Number without  User Interaction&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/6068988297498051416/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-for-loop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/6068988297498051416'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/6068988297498051416'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/factorial-of-number-using-for-loop.html' title='Factorial of Number using For Loop'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2mDPyABRHYr-FEoOj9Ypy8eAInAP2ZQ7jMxYOvAz7EciV7ESyEpr1g2Dd_XXbH_a5uemhQfNO_bhQPXbYqFfvg9HiTo1X_JVy7JP98ZBLp4KhNvioQQIS8AnEC6Ihw46r3uJ00S6SihM/s72-c/factFor.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-5627640083796759570</id><published>2020-12-07T14:15:00.014+05:30</published><updated>2021-01-17T09:57:14.017+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="easy code series"/><title type='text'>Fibonacci Series using Recursion</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-recursion.html&quot; target=&quot;_blank&quot;&gt;Write a Java Program to display Fibonacci Series using Recursion&lt;/a&gt; &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;

&lt;pre class=&quot;brush: java&quot;&gt;
import java.util.*;
public class FibRecursion {
	int fibSeries(int n){
		if(n&amp;lt;=1) 
		{
			return n; 
		}
		return fibSeries(n-1)+fibSeries(n-2);
	}
	public static void main(String[] args) 
	{
		Scanner scan = new Scanner(System.in);
		System.out.println(&quot;\n Enter Limit...&quot;);
		int N = scan.nextInt();
		FibRecursion f = new FibRecursion();
		f.fibSeries(N);
		for(int i=0; i&amp;lt;N; i++)
		{
			System.out.print(&quot; &quot; + f.fibSeries(i));
		}		
	}
}

&lt;b&gt;Output:&lt;/b&gt;

Enter Limit...
10
 0 1 1 2 3 5 8 13 21 34
&lt;/pre&gt;

&lt;pre class=&quot;brush: java&quot;&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUayEeiIk_Xx4qd5Afn5pKLJ6bUB7vKFH4_cdHgBBa5ljgajdGESwTGFriaUL0JeipiumO7e4MuqTnhwHpgx6d-1YIkKU4ESMiclrtPQF7UTx4RxbsaoknB54CxAbAOUXZCCqQfeS-8oU/s1365/fibrecursion.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;749&quot; data-original-width=&quot;1365&quot; height=&quot;296&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUayEeiIk_Xx4qd5Afn5pKLJ6bUB7vKFH4_cdHgBBa5ljgajdGESwTGFriaUL0JeipiumO7e4MuqTnhwHpgx6d-1YIkKU4ESMiclrtPQF7UTx4RxbsaoknB54CxAbAOUXZCCqQfeS-8oU/w591-h296/fibrecursion.png&quot; width=&quot;591&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;pre class=&quot;brush: java&quot;&gt;&lt;br /&gt;&lt;/pre&gt;

&lt;div&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-for-loop.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using For Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-while-loop.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-do-while-loop.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using Do-While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-method.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using Method&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-recursion.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using Recursion&lt;/a&gt;
&lt;/div&gt;  
</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/5627640083796759570/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-recursion.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/5627640083796759570'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/5627640083796759570'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-recursion.html' title='Fibonacci Series using Recursion'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUayEeiIk_Xx4qd5Afn5pKLJ6bUB7vKFH4_cdHgBBa5ljgajdGESwTGFriaUL0JeipiumO7e4MuqTnhwHpgx6d-1YIkKU4ESMiclrtPQF7UTx4RxbsaoknB54CxAbAOUXZCCqQfeS-8oU/s72-w591-h296-c/fibrecursion.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-9168243212726661992</id><published>2020-12-07T14:14:00.025+05:30</published><updated>2021-01-17T09:57:19.435+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="easy code series"/><title type='text'>Fibonacci Series using Do-While Loop</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-do-while-loop.html&quot; target=&quot;_blank&quot;&gt;Write a Java Program to display Fibonacci Series using Do-While Loop&lt;/a&gt;  &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class fibDoWhile 
{
	public static void main(String[] args) 
	{
		int a=0,b=1,c,i=0;
		System.out.print(&quot;\n&quot;+ a +&quot; &quot;+ b);
		do
		{
			c=a+b;
			a=b;
			b=c;
			System.out.print(&quot; &quot; + c);
			i++;
		}while( i&amp;lt;5 );
	}
}

&lt;b&gt;Output:&lt;/b&gt;

0 1 1 2 3 5 8
&lt;/pre&gt;

&lt;pre class=&quot;brush: java&quot;&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYjLk9_h7NxXnZzXifJTpjxzVzvJYM0iNMamr2c6aoNuGIWjKx6KOCrJcst82qa-t0XSIRJHfxGXiZdwk1PK_aaj_gmd_p2UGYVKQRuMkH_sJzTq_M0ahTeQb5z-xXGDZPDDfsv_YOn14/s1365/fibDoWhile.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;745&quot; data-original-width=&quot;1365&quot; height=&quot;295&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYjLk9_h7NxXnZzXifJTpjxzVzvJYM0iNMamr2c6aoNuGIWjKx6KOCrJcst82qa-t0XSIRJHfxGXiZdwk1PK_aaj_gmd_p2UGYVKQRuMkH_sJzTq_M0ahTeQb5z-xXGDZPDDfsv_YOn14/w619-h295/fibDoWhile.png&quot; width=&quot;619&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;pre class=&quot;brush: java&quot;&gt;&lt;br /&gt;&lt;/pre&gt;

&lt;div&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-for-loop.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using For Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-while-loop.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-do-while-loop.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using Do-While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-method.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using Method&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-recursion.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using Recursion&lt;/a&gt;
&lt;/div&gt;  
</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/9168243212726661992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-do-while-loop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/9168243212726661992'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/9168243212726661992'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-do-while-loop.html' title='Fibonacci Series using Do-While Loop'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYjLk9_h7NxXnZzXifJTpjxzVzvJYM0iNMamr2c6aoNuGIWjKx6KOCrJcst82qa-t0XSIRJHfxGXiZdwk1PK_aaj_gmd_p2UGYVKQRuMkH_sJzTq_M0ahTeQb5z-xXGDZPDDfsv_YOn14/s72-w619-h295-c/fibDoWhile.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-2467628839161645568</id><published>2020-12-07T14:14:00.024+05:30</published><updated>2021-01-17T09:57:16.776+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="easy code series"/><title type='text'>Fibonacci Series using Method</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-method.html&quot; target=&quot;_blank&quot;&gt;Write a Java Program to display Fibonacci Series using Method&lt;/a&gt;  &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;

&lt;pre class=&quot;brush: java&quot;&gt;
public class FibMethod 
{
	void fib()
	{
		int a=0,b=1,c;
		System.out.print(&quot;\n&quot;+ a +&quot; &quot;+ b);
		for(int i=0; i&amp;lt;5; i++)
		{
			c=a+b;
			a=b;
			b=c;
			System.out.print(&quot; &quot; + c);
		}
	}
	public static void main(String[] args) 
	{
		FibMethod obj = new FibMethod();
		obj.fib();
	}
}

&lt;b&gt;Output:&lt;/b&gt;

0 1 1 2 3 5 8
&lt;/pre&gt;

&lt;pre class=&quot;brush: java&quot;&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre class=&quot;brush: java&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgogat17LQXcm9L-27Mjiij8KbiF5TdFETlT6j4XKS229KAWQqWpLpFuZfahTqblIXWg350QlUl8k0uqGEPfipzTwS_f6aN9P3StL_Iw4SktknUJ7oVNu7WmAKPYXfFRPSEtaM0m29Wi-4/s1363/fibMethod.png&quot; imageanchor=&quot;1&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; margin-left: 1em; margin-right: 1em; text-align: center; white-space: normal;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;749&quot; data-original-width=&quot;1363&quot; height=&quot;298&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgogat17LQXcm9L-27Mjiij8KbiF5TdFETlT6j4XKS229KAWQqWpLpFuZfahTqblIXWg350QlUl8k0uqGEPfipzTwS_f6aN9P3StL_Iw4SktknUJ7oVNu7WmAKPYXfFRPSEtaM0m29Wi-4/w639-h298/fibMethod.png&quot; width=&quot;639&quot; /&gt;&lt;/a&gt;&lt;/pre&gt;

&lt;div&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-for-loop.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using For Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-while-loop.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-do-while-loop.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using Do-While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-method.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using Method&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-recursion.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using Recursion&lt;/a&gt;
&lt;/div&gt;  
</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/2467628839161645568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-method.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/2467628839161645568'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/2467628839161645568'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-method.html' title='Fibonacci Series using Method'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgogat17LQXcm9L-27Mjiij8KbiF5TdFETlT6j4XKS229KAWQqWpLpFuZfahTqblIXWg350QlUl8k0uqGEPfipzTwS_f6aN9P3StL_Iw4SktknUJ7oVNu7WmAKPYXfFRPSEtaM0m29Wi-4/s72-w639-h298-c/fibMethod.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-2959875758934362918</id><published>2020-12-07T14:13:00.017+05:30</published><updated>2021-01-17T09:57:22.186+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="easy code series"/><title type='text'>Fibonacci Series using While Loop</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-while-loop.html&quot; target=&quot;_blank&quot;&gt;Write a Java Program to display Fibonacci Series using While Loop&lt;/a&gt;  &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class fibUsingWhile 
{
	public static void main(String[] args) 
	{
		int a=0,b=1,c,i=0;
		System.out.print(&quot;\n&quot;+ a +&quot; &quot;+ b);
		while( i&amp;lt;5 )
		{
			c=a+b;
			a=b;
			b=c;
			System.out.print(&quot; &quot; + c);
			i++;
		}		
	}
}

&lt;b&gt;Output:&lt;/b&gt;

0 1 1 2 3 5 8
&lt;/pre&gt;

&lt;pre class=&quot;brush: java&quot;&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh37gww5zIB2cYAJupW0rsfGXyvCZjBeb0aPoa6bHi7xhMfDkNyNcvAMJn_FCp4TU2rH4qyK9fwaeCtcyGZ2p3wxfzkEdZbYxph2nHEYG5cvOyX3KC5L8hGEAN9J38E8O6bDuuKD3jcq-g/s1365/fibb.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;747&quot; data-original-width=&quot;1365&quot; height=&quot;309&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh37gww5zIB2cYAJupW0rsfGXyvCZjBeb0aPoa6bHi7xhMfDkNyNcvAMJn_FCp4TU2rH4qyK9fwaeCtcyGZ2p3wxfzkEdZbYxph2nHEYG5cvOyX3KC5L8hGEAN9J38E8O6bDuuKD3jcq-g/w607-h309/fibb.png&quot; width=&quot;607&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;pre class=&quot;brush: java&quot;&gt;&lt;br /&gt;&lt;/pre&gt;

&lt;div&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-for-loop.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using For Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-while-loop.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-do-while-loop.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using Do-While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-method.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using Method&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-recursion.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using Recursion&lt;/a&gt;
&lt;/div&gt;  
</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/2959875758934362918/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-while-loop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/2959875758934362918'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/2959875758934362918'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-while-loop.html' title='Fibonacci Series using While Loop'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh37gww5zIB2cYAJupW0rsfGXyvCZjBeb0aPoa6bHi7xhMfDkNyNcvAMJn_FCp4TU2rH4qyK9fwaeCtcyGZ2p3wxfzkEdZbYxph2nHEYG5cvOyX3KC5L8hGEAN9J38E8O6bDuuKD3jcq-g/s72-w607-h309-c/fibb.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5878757790980310693.post-1598443728794517558</id><published>2020-12-07T14:12:00.015+05:30</published><updated>2021-01-17T09:57:24.923+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="easy code series"/><title type='text'>Fibonacci Series using For Loop</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;b style=&quot;background-color: white; color: #333333; font-family: times; text-align: justify;&quot;&gt;
  &lt;span style=&quot;text-align: center;&quot;&gt; 
  &lt;span&gt;&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-for-loop.html&quot; target=&quot;_blank&quot;&gt;Write a Java Program to display Fibonacci Series using For Loop&lt;/a&gt;  &amp;nbsp;&lt;/span&gt;  
  &lt;/span&gt;
  &lt;/b&gt;
  &lt;/span&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
import java.util.*;
public class FibonacciSeries 
{
	public static void main(String[] args) 
	{
		int a=0,b=1,c;
		Scanner s = new Scanner(System.in);
		System.out.println(&quot;\n Enter Limit...&quot;);
		int size = s.nextInt();
		System.out.print(&quot;\n&quot;+ a +&quot; &quot;+ b);
		for(int i=0; i&amp;lt;size; i++)
		{
			c=a+b;
			a=b;
			b=c;
			System.out.print(&quot; &quot; + c);
		}		
	}
}

&lt;b&gt;Output:&lt;/b&gt;

Enter Limit...
10

0 1 1 2 3 5 8 13 21 34 55
&lt;/pre&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9MWY6ce1p9XdltV6kMuTWU_P6_hbsahXUhrKuW_xcsH_JYFE9FT9L5grOS3ZNp2gNNIOdVUeXlr-1wt2JLiUfWIxjP3L7-VZ2FK5yrS2Gh62oLOAaiC7Gh8mEoa6JVDDJeX09m-_BCmU/s1363/fibFor.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;745&quot; data-original-width=&quot;1363&quot; height=&quot;328&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9MWY6ce1p9XdltV6kMuTWU_P6_hbsahXUhrKuW_xcsH_JYFE9FT9L5grOS3ZNp2gNNIOdVUeXlr-1wt2JLiUfWIxjP3L7-VZ2FK5yrS2Gh62oLOAaiC7Gh8mEoa6JVDDJeX09m-_BCmU/w601-h328/fibFor.png&quot; width=&quot;601&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;pre class=&quot;brush: java&quot;&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre class=&quot;brush: java&quot;&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre class=&quot;brush: java&quot;&gt;&lt;br /&gt;&lt;/pre&gt;

&lt;div&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-for-loop.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using For Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-while-loop.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-do-while-loop.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using Do-While Loop&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-method.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using Method&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-recursion.html&quot; target=&quot;_blank&quot;&gt;Fibonacci Series using Recursion&lt;/a&gt;
&lt;/div&gt;  
</content><link rel='replies' type='application/atom+xml' href='https://cprogramseries.blogspot.com/feeds/1598443728794517558/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-for-loop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/1598443728794517558'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5878757790980310693/posts/default/1598443728794517558'/><link rel='alternate' type='text/html' href='https://cprogramseries.blogspot.com/2020/12/fibonacci-series-using-for-loop.html' title='Fibonacci Series using For Loop'/><author><name>Program Series</name><uri>http://www.blogger.com/profile/14582925432670125833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksNsNwtdoeknDeTW5QyOF6j01QmIBo09kvNd6pQnFqWJDgx2j_XmWvGOvoKeRvtCZGgL25yRK6FPmEG7cx5FJX4lRMHD7JQfgpObvYnJL8BTD6vwMRIxMPW1PGPle7ms/s113/IMG_20200815_104408_137.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9MWY6ce1p9XdltV6kMuTWU_P6_hbsahXUhrKuW_xcsH_JYFE9FT9L5grOS3ZNp2gNNIOdVUeXlr-1wt2JLiUfWIxjP3L7-VZ2FK5yrS2Gh62oLOAaiC7Gh8mEoa6JVDDJeX09m-_BCmU/s72-w601-h328-c/fibFor.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>