<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Java Program: by Alka Malik</title>
      <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd</link>
      <description>Write your name first</description>
      <language>en-us</language>
      <pubDate>2021-06-20 19:11:08 UTC</pubDate>
      <lastBuildDate>2023-08-15 12:29:23 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Shristi</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1655609813</link>
         <description><![CDATA[<div>import java.util.*;<br>public class program1&nbsp;<br>{<br>&nbsp; &nbsp; public static void main (String args [])<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; Scanner sc = new Scanner (System.in) ;<br>&nbsp; &nbsp; &nbsp; &nbsp; int numbers[ ]= new int [size];<br>int max;<br>&nbsp; &nbsp; &nbsp; &nbsp; int min;<br>&nbsp;System.out.println(" Enter the size of the array ");<br>int size = sc.nextInt();<br>System.out.println("\n ENTERED ARRAY IS ");<br>for (int&nbsp; i = 0; i&lt;size; i++)<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; myArray[i]=sc.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>max= numbers[0];<br>&nbsp; &nbsp; &nbsp; &nbsp; min= numbers[0];<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; for(int i=1 ; i&lt;n ; i++)<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( numbers[i] &gt; max)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; max= numbers[i];<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( numbers[i] &lt; min)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; min= numbers[i];<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("\n MINIMUM VALUE :" + max);<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("\n MAXIMUM VALUE :" + min);<br>}<br>}<br>&nbsp; &nbsp; &nbsp; &nbsp;</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-07-20 04:48:56 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1655609813</guid>
      </item>
      <item>
         <title>SHIVANSH</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1655617449</link>
         <description><![CDATA[<div>import java.util. *;<br>class big<br>{<br>&nbsp; &nbsp; public static void main()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; Scanner sc= new Scanner(System.in);<br>&nbsp; &nbsp; &nbsp; &nbsp; int n=sc.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp; int arr[] =new int[n];<br>&nbsp; &nbsp; &nbsp; &nbsp; for(int i=0;i&lt;arr.length;i++)<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arr[i]= sc.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; int max=arr[0];<br>&nbsp; &nbsp; &nbsp; &nbsp; int min=arr[0];<br>&nbsp; &nbsp; &nbsp; &nbsp; for(int i=0; i&lt;arr.length; i++)<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(arr[i]&gt;max)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; max=arr[i];<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(arr[i]&lt;min)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; min=arr[i];<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Max"+max +"\n Min"+min);<br>&nbsp; &nbsp; }<br>}<br><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2021-07-20 04:57:56 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1655617449</guid>
      </item>
      <item>
         <title>Arnav</title>
         <author>arnav25jun2005</author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1655626234</link>
         <description><![CDATA[<div>import java.util.*;<br>class maxArray<br>{<br>&nbsp; &nbsp; public static void main()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; Scanner sc= new Scanner(System.in);<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; int ar[], n, i, min, max;<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Enter the size of the array");<br>&nbsp; &nbsp; &nbsp; &nbsp; n= sc.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; ar= new int[n];<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Enter the array elements");<br>&nbsp; &nbsp; &nbsp; &nbsp; for(i=0; i&lt;n; i++)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ar[i]= sc.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;min=max=ar[0];<br>&nbsp; &nbsp; &nbsp; &nbsp; for(i=1; i&lt;n; i++)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (ar[i]&gt;max)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;max= ar[i];<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(ar[i]&lt;min)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;min= ar[i];<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Largest element= "+max);<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Smallest element= "+min);<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-07-20 05:08:43 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1655626234</guid>
      </item>
      <item>
         <title>Program 2 shristi</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1655627991</link>
         <description><![CDATA[<div>import java.util.*;<br>public class program1&nbsp;<br>{<br>&nbsp; &nbsp; public static void main (String args [])<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; Scanner sc = new Scanner (System.in) ;<br>&nbsp; &nbsp; &nbsp; &nbsp; int ar[ ]= new int [size];<br>System.out.println(" Enter the size of the array ");<br>int size = sc.nextInt();<br>int sum = 0;<br>int n ;&nbsp;<br>for (int&nbsp; i = 0; i&lt;size; i++)<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; myArray[i]=sc.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>for ( int i = 0 ; i&lt;size; i++)<br>{<br>n= 0;<br>for ( int j= 1 ; j&lt;&nbsp; = ar[i] ; j++ )<br>if ar[i] % j ==0;<br>n++;<br>if n== 2;<br>sum = sum+ ar[ i ];<br>}<br>System.out.println("\n SUM OF THE ARRAY IS " + sum);<br>}<br>}<br><br><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2021-07-20 05:11:05 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1655627991</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1655630429</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1246641841/1896289c1b9d35f0b849f08da40475db/WIN_20210720_10_43_54_Pro.jpg" />
         <pubDate>2021-07-20 05:14:16 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1655630429</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1655630757</link>
         <description><![CDATA[<div>&nbsp;Jaya Jaiswal&nbsp;</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1246634118/2a1c9a3c7893073b2bb2b7d6d053af34/1626758065581153253152.jpg" />
         <pubDate>2021-07-20 05:14:44 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1655630757</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1655632289</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1246641841/5cfdc1384db86a224d1552ebd417a323/WIN_20210720_10_46_25_Pro.jpg" />
         <pubDate>2021-07-20 05:16:37 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1655632289</guid>
      </item>
      <item>
         <title>Himani</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1655642343</link>
         <description><![CDATA[<div>import java.util.*;<br>class abc<br>{<br>&nbsp;public static void main ()<br>{<br>&nbsp;Scanner sc=new Scanner(System.in);<br>int c=0,sum=0;<br>&nbsp;System.out.println("enter the size of array");<br>&nbsp;Int n=sc.nextInt();<br>&nbsp; Int a[ ] =new int[n];<br>&nbsp; System.out.println("enter&nbsp; the elements ");<br>&nbsp; for(int i=0;i&lt;n;i++)<br>&nbsp;{&nbsp;<br>&nbsp; &nbsp;a[i]=sc.nextInt();<br>}<br>for(int i=1;i&lt;=a[i];i++)<br>{<br>&nbsp; &nbsp;If (a[i]%i==0)<br>&nbsp; &nbsp; &nbsp; &nbsp;{<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;c++;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sum=sum+a[i];<br>&nbsp; &nbsp; &nbsp; }<br>}<br>&nbsp; If(c==2)<br>&nbsp; &nbsp;{<br>&nbsp; &nbsp; &nbsp;System.out.prinltn("prime numbers="+a[i]);<br>&nbsp; &nbsp; System.out.prinltn("sum of prime numbers="+sum);<br>}<br>}<br><br>&nbsp; &nbsp;&nbsp;<br><br>&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp; &nbsp;<br><br></div>]]></description>
         <pubDate>2021-07-20 05:30:06 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1655642343</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1655672573</link>
         <description><![CDATA[<div>Shreya</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1249404372/f6d3fb6000ea9e37a29991355bc78107/20210720_113949.jpg" />
         <pubDate>2021-07-20 06:10:34 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1655672573</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1655679746</link>
         <description><![CDATA[Shreya]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1249404372/59d47b156d73de733714b9577d3cec1c/20210720_114853.jpg" />
         <pubDate>2021-07-20 06:19:35 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1655679746</guid>
      </item>
      <item>
         <title>Zainab</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1658017046</link>
         <description><![CDATA[<div>For(i=0;i&lt;n-1;i++)<br>{<br>For(j=0;j&lt;(n-i-1);j++)<br>{<br>If(arr[j-1]&gt;arr[j])<br>{<br>t=arr[j-1];<br>arr[j-1]=arr[j];<br>arr[j]=t;<br>}<br>}<br>}<br><br></div>]]></description>
         <pubDate>2021-07-22 05:58:15 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1658017046</guid>
      </item>
      <item>
         <title>import java.util.*;class pgr{    public void main ()    {        Scanner sc=new Scanner(System.in);        int n =sc.nextInt();        int arr[]=new Int [n];        for (int i=0;i&lt;=n;i++)        {            arr[i]=sc.nextInt ();        }        for (int j=0;j&lt;=n;j++)        {                        for (int x=0;x&lt;n;x++)            {                if (arr[x]&lt;arr[x+1])                {                  int t=arr[x];                  arr[x]=arr[x+1];                  arr[x+1]=t;                                }            }        }        for (int k = 0;k&lt;=n;k++)        {            System.out.print(arr[k]);        }    }}</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1658019028</link>
         <description><![CDATA[<div>~Abhimantra Rastogi<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2021-07-22 06:00:47 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1658019028</guid>
      </item>
      <item>
         <title>Himani</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1658049570</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1246634211/989e92ea5a68bb414b03a2662032d5ac/IMG20210722120848.jpg" />
         <pubDate>2021-07-22 06:39:22 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1658049570</guid>
      </item>
      <item>
         <title>Anshuman Singh Raghuvanshi XI-G</title>
         <author>anshumansinghraghuvanshi24aug2005</author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1659013877</link>
         <description><![CDATA[<div>Bubble sorting<br>import java.util.*;</div><div>class Dcoder<br>&nbsp;{<br>&nbsp; &nbsp; public static void main(String args[])<br>&nbsp; &nbsp; {&nbsp;<br>&nbsp; &nbsp; &nbsp;Scanner sc =new Scanner(System.in);<br>&nbsp; &nbsp; &nbsp;System.out.println("Enter the range of the array");<br>&nbsp; &nbsp; &nbsp;int n = sc.nextInt();<br>&nbsp; &nbsp; &nbsp;int ar[]= new int[n];<br>&nbsp; &nbsp; &nbsp;System.out.println("Enter array elements");<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for(int i = 0;i&lt;=n-1;i++)<br>&nbsp; &nbsp; &nbsp;{<br>&nbsp; &nbsp; &nbsp; &nbsp;ar[i]= sc.nextInt();<br>&nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp;for(int&nbsp; k = 0;k&lt;n-1;k++)<br>&nbsp; &nbsp; &nbsp;{<br>&nbsp; &nbsp; &nbsp;for(int j = 0 ;j&lt;=n-2;j++)<br>&nbsp; &nbsp; &nbsp;{<br>&nbsp; &nbsp; &nbsp; &nbsp;if(ar[j]&lt;ar[j+1])<br>&nbsp; &nbsp; &nbsp; &nbsp;{<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int x = ar[j];<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ar[j]=ar[j+1];<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ar[j+1]= x;<br>&nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp; &nbsp;}<br>for(int m=0;m&lt;=n;m++)<br>System.out.println("Modified array"+ ar[m]);<br>}<br>}</div>]]></description>
         <pubDate>2021-07-23 03:28:42 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1659013877</guid>
      </item>
      <item>
         <title>zainab</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1659130621</link>
         <description><![CDATA[<div>for(int i= 0; i&lt;arr.length-1;i++)<br>{<br>int index=i,j;<br>for(j=1+i;j&lt;arr.length;j++)<br>if(arr[j]&lt;arr[index])<br>{<br>index=j;<br>}<br>}<br>int smallerNumber=arr[index];<br>arr[index]=arr[i];<br>arr[i]=smallerNumber;<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-07-23 05:52:08 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1659130621</guid>
      </item>
      <item>
         <title>import java.util.*;class selection_sort{    public static void main()    {        Scanner sc= new Scanner(System.in);        int n=sc.nextInt();        int arr[]= new int[n];        for(int i=0; i&lt;arr.length; i++)        {            arr[i]= sc.nextInt();        }                int temp=0;        for(int i=0;i&lt;arr.length; i++)        {            for(int j=i+1; j&lt;arr.length; j++)            {                if(arr[i]&gt;arr[j])                {                    temp=arr[i];                    arr[i]=arr[j];                    arr[j]= temp;                }            }        }        for(int i=0;i&lt;arr.length; i++)        {            System.out.println(arr[i]);        }    }    }            </title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1659158487</link>
         <description><![CDATA[<div>is it correct ?<br>SHIVANSH</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-07-23 06:34:52 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1659158487</guid>
      </item>
      <item>
         <title>Prateek S.</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1659158502</link>
         <description><![CDATA[<div>import java.util.*;<br>public class SelectionSort&nbsp;<br>{<br>	public static void main (String args[])<br>	{<br>		Scanner sc=new Scanner (System.in);<br>		int arr[];<br>		System.out.println("Input the length of the Array");<br>		int len=sc.nextInt();<br>		arr= new int[len];<br>		int temp=0;<br>		System.out.println("Input the Elements of the Array ");<br>		for (int i=0;i&lt;len;i++)<br>			arr[i]=sc.nextInt();<br>		for (int i=0;i&lt;len-1;i++)<br>		{<br>			for (int j=i+1;j&lt;len;j++)<br>			{<br>				if (arr[i]&gt;arr[j])<br>				{<br>					temp=arr[i];<br>					arr[i]=arr[j];<br>					arr[j]=temp;<br>				}	<br>			}<br>		}<br>		System.out.println("The Sorted array is ");<br>		for (int i=0;i&lt;len;i++)<br>			System.out.println(arr[i]);<br>	}<br>}<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2021-07-23 06:34:53 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1659158502</guid>
      </item>
      <item>
         <title>import java.util.*;</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1664750364</link>
         <description><![CDATA[<div>class ArrangeNum<br>{<br>int n;<br>int s[];<br>ArrangeNum (int nn)<br>{<br>n=nn;<br>}<br><mark>void fillarray()</mark><br>{<br>System.out.println ("Enter number:");<br>n=ob.nextInt();<br>int no=n,c=0;<br>while (no!=0);<br>{<br>n=n/10;<br>c++;&nbsp; //counting number of digits in number<br>}<br>s=new int[c];<br>int i, nu=n,r;<br>while (nu!=0)<br>{<br>r=n%10;<br>s[i] = r;&nbsp; &nbsp; &nbsp; &nbsp;//unsorted array<br>nu= nu/10;<br>}<br><mark>void arrange()</mark><br>{<br>int i, j,t;<br>for (i=0;i&lt;s.length;i++)<br>{<br>for (j=0; j&lt;s.length-1-i;j++)<br>{<br>if ( s[j]&gt;s[j+1])<br>{<br>t=a[j];&nbsp; //storing greater element in t<br>a[j]=a[j+1]; //swapping <br>a[j+1]=t;<br>}}}<br><br><mark>void display ()<br></mark>{<br>System.out.println ("Original number" +n);<br>System.out.print ("Sorted number:");<br>/**Printing array in ascending order*/<br>for (i=0;i&lt;s.length;i++)<br>System.out.println (s[i]);<br>}}}<mark><br></mark><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2021-07-30 05:58:16 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1664750364</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1664752472</link>
         <description><![CDATA[<div><br><br><br><br><br><br><br><br>int s[ ] ;<br>/**parameterized constructor</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-07-30 06:01:34 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1664752472</guid>
      </item>
      <item>
         <title>SHIVANSH</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1664777004</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1246641841/e98ae601c48f38b5e8c9640462d34446/WIN_20210730_12_06_41_Pro.jpg" />
         <pubDate>2021-07-30 06:37:03 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1664777004</guid>
      </item>
      <item>
         <title>Arrange NUM</title>
         <author>arnav25jun2005</author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1664791035</link>
         <description><![CDATA[<div>import java.util.*;<br>class arrangenum<br>{<br>&nbsp; &nbsp; int n;<br>&nbsp; &nbsp; int s[];<br>&nbsp; &nbsp; arrangenum(int nn)<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; n= nn;<br>&nbsp; &nbsp; &nbsp; &nbsp; //process to count the total number of digits of n<br>&nbsp; &nbsp; &nbsp; &nbsp; int len=0;<br>&nbsp; &nbsp; &nbsp; &nbsp; while(nn!=0)<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; len++;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nn= nn/10;<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; //allocate the memory for the array<br>&nbsp; &nbsp; &nbsp; &nbsp; s= new int[len];<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; void fillarray()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; //extract each digit from the number n and store it in array<br>&nbsp; &nbsp; &nbsp; &nbsp; int i=0;<br>&nbsp; &nbsp; &nbsp; &nbsp; int q=n;<br>&nbsp; &nbsp; &nbsp; &nbsp; while (q!=0)<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s[i]= q%10;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i++;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; q= q/10;<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; void arrange()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;//bubble sort method<br>&nbsp; &nbsp; &nbsp; &nbsp;for(int i=0; i&lt;s.length; i++)<br>&nbsp; &nbsp; &nbsp; &nbsp;{<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for(int j=0; j&lt;s.length-1-i; j++)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(s[j]&gt;s[j+1])<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int temp= s[j];<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;s[j]=s[j+1];<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;s[j+1]= temp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; void display()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Original Number: "+n);<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Sorted Number: ");<br>&nbsp; &nbsp; &nbsp; &nbsp; for(int i=0; i&lt;s.length; i++)<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.print(s[i]);<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; public static void main()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; Scanner sc= new Scanner(System.in);<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Enter a number; ");<br>&nbsp; &nbsp; &nbsp; &nbsp; int x= sc.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; arrangenum ob= new arrangenum(x);<br>&nbsp; &nbsp; &nbsp; &nbsp; ob.fillarray();<br>&nbsp; &nbsp; &nbsp; &nbsp; ob.arrange();<br>&nbsp; &nbsp; &nbsp; &nbsp; ob.display();<br>&nbsp; &nbsp; }<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-07-30 06:58:41 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1664791035</guid>
      </item>
      <item>
         <title>BHAVIKA</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665397839</link>
         <description><![CDATA[<div><strong>//SUPER CLASS</strong><br>public class Plane<br>{<br>&nbsp; &nbsp; int x1,x2,y1,y2;<br>&nbsp; &nbsp; public Plane(int a,int b,int c,int d)<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; x1=a;<br>&nbsp; &nbsp; &nbsp; &nbsp; x2=b;<br>&nbsp; &nbsp; &nbsp; &nbsp; y1=c;<br>&nbsp; &nbsp; &nbsp; &nbsp; y2=d;<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; double distance()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; return Math.sqrt(Math.pow(x2-x1,2)+Math.pow(y2-y1,2));<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; void display()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Start point: ("+x1+","+y1+")");<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("End point: ("+x2+","+y2+")"); <br>&nbsp; &nbsp; }<br>}<br><strong>//SUB CLASS</strong><br><br>import java.util.*;<br>public class Calculate extends Plane<br>{<br>&nbsp; &nbsp; double dist,midx,midy;<br>&nbsp; &nbsp; public Calculate(int a,int b,int c,int d)<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; super(a,b,c,d);<br>&nbsp; &nbsp; &nbsp; &nbsp; dist=midx=midy=0;<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; void docalc()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; dist=distance();<br>&nbsp; &nbsp; &nbsp; &nbsp; midx=(x1+x2)/2;<br>&nbsp; &nbsp; &nbsp; &nbsp; midy=(y1+y2)/2;<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; void display()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; super.display();<br>&nbsp; &nbsp; &nbsp; &nbsp; docalc();<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Distance="+dist);<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Mid-point=("+midx+","+midy+")");<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; public static void main()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; Scanner sc=new Scanner(System.in);<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Enter the coordintes of one point:");<br>&nbsp; &nbsp; &nbsp; &nbsp; int a=sc.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp; int c=sc.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Enter the coordintes of second point:");<br>&nbsp; &nbsp; &nbsp; &nbsp; int b=sc.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp; int d=sc.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp; Calculate ob=new Calculate(a,b,c,d);<br>&nbsp; &nbsp; &nbsp; &nbsp; ob.display();<br>&nbsp; &nbsp; }<br>}<br><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2021-07-31 05:10:07 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665397839</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665411889</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1251768706/5d0ed70f03a92f3f7d279c6bce79ebc9/IMG_20210731_WA0006.jpeg" />
         <pubDate>2021-07-31 05:55:59 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665411889</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665412169</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1251768706/0a9fc601ef8c6f15ec1d8c4bacc3cecb/IMG_20210731_WA0004.jpeg" />
         <pubDate>2021-07-31 05:56:47 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665412169</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665431800</link>
         <description><![CDATA[<div>SHIVANSH<br><br><br><br></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1246641841/8180b9873e476016a029e51cc6593a00/WIN_20210731_12_27_05_Pro.jpg" />
         <pubDate>2021-07-31 06:57:32 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665431800</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665435070</link>
         <description><![CDATA[<div>SURYANSH MISHRA&nbsp;</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/654544335/6c78dab61a6153d8d6a13b9211479a24/16277151385586601001215196109474.jpg" />
         <pubDate>2021-07-31 07:08:20 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665435070</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665435265</link>
         <description><![CDATA[<div>SURYANSH MISHRA&nbsp;</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/654544335/5cd86638242e59fac2187bb780c7919f/16277151838447842369794554713837.jpg" />
         <pubDate>2021-07-31 07:09:01 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665435265</guid>
      </item>
      <item>
         <title>BHAVIKA</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665441430</link>
         <description><![CDATA[<div><strong>//SUBCLASS</strong><br>import java.util.*;<br>public class Invoice extends Products<br>{<br>&nbsp; &nbsp; int qty,ndef;<br>&nbsp; &nbsp; double gst,totalamt;<br>&nbsp; &nbsp; public Invoice(int c,String n,double p,int q,int d)<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; super(c,n,p);<br>&nbsp; &nbsp; &nbsp; &nbsp; qty=q;<br>&nbsp; &nbsp; &nbsp; &nbsp; ndef=d;<br>&nbsp; &nbsp; &nbsp; &nbsp; gst=totalamt=0;<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; void calcValue()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; gst=18.5/100*price*(qty-ndef);<br>&nbsp; &nbsp; &nbsp; &nbsp; totalamt=price*(qty-ndef)+gst;<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; void print()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; super.print();<br>&nbsp; &nbsp; &nbsp; &nbsp; calcValue();<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("QUANTITY:"+qty);<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("DEFECTED PIECES:"+ndef);<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("TOTAL AMOUNT:"+totalamt);<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; static void main()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; Scanner sc=new Scanner(System.in);<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Enter product code:");<br>&nbsp; &nbsp; &nbsp; &nbsp; int c=sc.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Enter product name:");<br>&nbsp; &nbsp; &nbsp; &nbsp; String n=sc.nextLine();<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Enter price of each product :");<br>&nbsp; &nbsp; &nbsp; &nbsp; double p=sc.nextDouble();<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Enter quantity:");<br>&nbsp; &nbsp; &nbsp; &nbsp; int q=sc.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Enter no.of defective pieces:");<br>&nbsp; &nbsp; &nbsp; &nbsp; int d=sc.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp; Invoice ob=new Invoice(c,n,p,q,d);<br>&nbsp; &nbsp; &nbsp; &nbsp; ob.print();<br>&nbsp; &nbsp; }<br>}<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2021-07-31 07:28:26 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665441430</guid>
      </item>
      <item>
         <title>1</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665441638</link>
         <description><![CDATA[<div>Devojeet Diwakar</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1279508440/066858b81ce5d4b8184da63d4a867b31/WhatsApp_Image_2021_07_31_at_12_58_08_PM.jpeg" />
         <pubDate>2021-07-31 07:29:17 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665441638</guid>
      </item>
      <item>
         <title>Jayant</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665443725</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1278674704/a4ebef256c5ce1548093c61ebfb939ca/16277169857065798177784918491644.jpg" />
         <pubDate>2021-07-31 07:36:16 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665443725</guid>
      </item>
      <item>
         <title>Jayant subclass</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665444859</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1278674704/ba6c6d11221653c2e5214ae93423c4e2/16277172306891647911299150668982.jpg" />
         <pubDate>2021-07-31 07:39:46 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665444859</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665445082</link>
         <description><![CDATA[Radha]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1224700629/ade66df3fe110fdc25338724d669083a/16277171755672248540178601944203.jpg" />
         <pubDate>2021-07-31 07:40:13 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665445082</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665445435</link>
         <description><![CDATA[Radha]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1224700629/0fa40db2787304cae535d130e399d208/1627717229813902287245159025242.jpg" />
         <pubDate>2021-07-31 07:41:30 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665445435</guid>
      </item>
      <item>
         <title>Tanay</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665448131</link>
         <description><![CDATA[<div>import java.util.*;<br>public class Invoice extends Products<br>{<br>&nbsp; &nbsp; int quantity,def;<br>&nbsp; &nbsp; double gst,totalamt;<br>&nbsp; &nbsp; public Invoice(int c,String n,double p,int q,int d)<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; super(c,n,p);<br>&nbsp; &nbsp; &nbsp; &nbsp; quantity=q;<br>&nbsp; &nbsp; &nbsp; &nbsp; def=d;<br>&nbsp; &nbsp; &nbsp; &nbsp; gst=totalamt=0;<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; void calcValue()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; gst=18.5/100*price*(quantity-def);<br>&nbsp; &nbsp; &nbsp; &nbsp; totalamt=price*(quantity-def)+gst;<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; void print()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; super.print();<br>&nbsp; &nbsp; &nbsp; &nbsp; calcValue();<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("QUANTITY:"+ quantity);<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("DEFECTED PIECES:"+ def);<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("TOTAL AMOUNT:"+totalamt);<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-07-31 07:48:34 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1665448131</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1666459319</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1246634118/2ba574332c478c345f4a8b1560f2b4b2/162788585422767874038.jpg" />
         <pubDate>2021-08-02 06:31:31 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1666459319</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1672529079</link>
         <description><![CDATA[<div>import java.util.*;<br>class perfectnum<br>{<br>static&nbsp; Scanner sc= new Scanner(System.in);<br>void enter()<br>{<br>int arr[] = new int[10]; &nbsp; //creating array<br>int i,c=0;<br>System.out.println ("ENTER ARRAY ELEMENTS")<br>for (i=0;i&lt;10;i++)<br>arr[i]= sc.nextInt();&nbsp; //entering array&nbsp; elements<br><br>&nbsp;System.out.println ("PERFECT NUMBERS ARE:" );<br>if (sumFactor(arr[i]) == arr[i])<br>{<br>System.out.println (arr[i]);<br>c++;<br>}<br>if (c=0)<br>System.out.println ("NO PERFECT NUMBER IS PRESENT IN ARRAY");<br>}<br><br><br>int sumFactor(int n)<br>{<br>&nbsp;int sum=0;&nbsp;<br>for (int i=1;i&lt;=n/2;i++)<br>{<br>if (n%i==0)<br>sum=sum+i;<br>}<br>return sum;<br>}<br>}<br>&nbsp;&nbsp;</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-09 05:54:30 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1672529079</guid>
      </item>
      <item>
         <title>Perfect array</title>
         <author>arnav25jun2005</author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1672575187</link>
         <description><![CDATA[<div>import java.util.*;<br>class perfectarr<br>{<br>&nbsp; &nbsp; void perfectarr()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; int ar[]= new int[10], i;<br>&nbsp; &nbsp; &nbsp; &nbsp; Scanner sc= new Scanner(System.in);<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Enter array elements");<br>&nbsp; &nbsp; &nbsp; &nbsp; for(i= 0; i&lt;10; i++)<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ar[i]= sc.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Perfect Numbers");<br>&nbsp; &nbsp; &nbsp; &nbsp; for(i=0; i&lt;10; i++)<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int r= sumfactor(ar[i]);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(r==ar[i])<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(ar[i]);<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; int sumfactor(int a)<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; int s=0;<br>&nbsp; &nbsp; &nbsp; &nbsp; for(int i=1; i&lt;=a/2; i++)<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(a%i==0)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s= s+i;<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; return s;<br>&nbsp; &nbsp; }<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-09 06:44:12 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1672575187</guid>
      </item>
      <item>
         <title>Perfect Array</title>
         <author>vanshikanitya</author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1672576513</link>
         <description><![CDATA[<div>import java.util.*;</div><div>class perfectarr</div><div>{</div><div>	void printperfect ()</div><div>{</div><div>		int i, ar=new int [10];</div><div>Scanner sc=new Scanner (System.in);</div><div>System.out. println(“Enter array element”);</div><div>for (i=0; i&lt;10; i++);</div><div>{</div><div>	ar[i]= sc.nextInt();</div><div>}</div><div>System.out. println(“Perfect numbers”);</div><div>for (i=0; i&lt;10; i++);</div><div>{</div><div>	int r=sumfactor (arr[i]);</div><div>	if (r==ar[i])</div><div>	System.out. println (ar[i])</div><div>}</div><div>}</div><div>int sumfactor (int a)</div><div>{</div><div>	int s=0;</div><div>	for (int i=1; i&lt;a/2; i++)</div><div>	{</div><div>		if (a%i==0)&nbsp;</div><div>s=s+i;</div><div>}</div><div>	return s;</div><div>	}</div><div>}</div><div><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-09 06:45:33 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1672576513</guid>
      </item>
      <item>
         <title>Sort prg</title>
         <author>arnav25jun2005</author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1672589224</link>
         <description><![CDATA[<div>import java.util.*;<br>class sort<br>{<br>&nbsp; &nbsp; static Scanner sc= new Scanner(System.in);<br>&nbsp; &nbsp; int arr[], size, small, big;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; sort(int n)<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; size=n;<br>&nbsp; &nbsp; &nbsp; &nbsp; arr= new int[size];<br>&nbsp; &nbsp; &nbsp; &nbsp; small=big=0;<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; void input()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; int i;<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Enter the array elements: ");<br>&nbsp; &nbsp; &nbsp; &nbsp; for(i=0; i&lt;size; i++)&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arr[i]= sc.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; void smallest()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; small= arr[0];<br>&nbsp; &nbsp; &nbsp; &nbsp; for(int i=1; i&lt;size; i++)<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(arr[i]&lt;small)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; small= arr[i];<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; void biggest()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; big= arr[0];<br>&nbsp; &nbsp; &nbsp; &nbsp; for(int i=1; i&lt;size; i++)<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(arr[i]&gt;big)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; big= arr[i];<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; void arrange()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; for(int i= small; i&lt;=big; i++)<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(int j=0; j&lt;size; j++)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(arr[j]==i)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(arr[j]+"\t");<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; public static void main()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Enter the size of the array");<br>&nbsp; &nbsp; &nbsp; &nbsp; int x= sc.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp; sort ob= new sort(x);<br>&nbsp; &nbsp; &nbsp; &nbsp; ob.input();<br>&nbsp; &nbsp; &nbsp; &nbsp; ob.biggest();<br>&nbsp; &nbsp; &nbsp; &nbsp; ob.smallest();<br>&nbsp; &nbsp; }<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-09 07:01:20 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1672589224</guid>
      </item>
      <item>
         <title></title>
         <author>shreyas7305</author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1673649509</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1252720939/cc42dc77fb5b8d5d008d4030f356344c/WhatsApp_Image_2021_08_10_at_9_08_34_AM.jpeg" />
         <pubDate>2021-08-10 03:39:53 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1673649509</guid>
      </item>
      <item>
         <title>Himani</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1673715536</link>
         <description><![CDATA[<div>Int sum of digits(int x)<br>{<br>Int sum=0;<br>While(x!=0)<br>&nbsp;{&nbsp;<br>&nbsp; &nbsp;Int digit=x%10;<br>&nbsp; Sum= sum +digit;<br>&nbsp; &nbsp;x=x/10;<br>&nbsp; &nbsp; }<br>&nbsp; return sum;<br>}<br>boolean ismagic(int n)<br>{<br>while(n&gt;9)<br>{<br>&nbsp; &nbsp;n=sumofdigit(n);<br>}<br>If(n=1)<br>&nbsp; return true;<br>else&nbsp;<br>&nbsp;return false;<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-10 04:52:05 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1673715536</guid>
      </item>
      <item>
         <title>SHIVANSH</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1673728734</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1246641841/5c1eb5f80cbcd992f578c7b3c4e67ea4/WIN_20210810_10_37_38_Pro.jpg" />
         <pubDate>2021-08-10 05:08:07 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1673728734</guid>
      </item>
      <item>
         <title>Shristi</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1673729870</link>
         <description><![CDATA[<div>import java.util.*;<br>class Magic<br>{<br>int arr[ ] ;<br>int size;<br><br>magic ( int x)<br>{<br>size = x;<br>arr [ ] = new int [ size ];<br>}<br>void input ()<br>{<br>System.out.println("ENTER THE NUMBER" );<br>for ( int i=0 ; i&lt;size ; i++ )<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arr [i] = sc.nextInt() ;<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>}<br>int sumofdigits (int x)<br>{<br>int s = 0;<br>while ( x&gt;0 )<br>{<br>&nbsp;s = s + x%10;<br>x = x/10;<br>}<br>return s;<br>}<br>boolean ismagic ( int n )<br>{<br>while ( n &gt; 9 )<br>{&nbsp;<br>n = sumofdigits(n)<br>}<br>if (n == 1) return true ;<br>else return false;<br>}<br>void show ( )<br>{&nbsp;<br>for ( int i=0 ; i&lt;5 ; i++ )<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( ismagic ( arr [ i ] ) == true );<br>System.out.println( arr [ i ]);<br><br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>public static void main (String args [])<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; Scanner sc= new Scanner ( System.in) ;<br>&nbsp;int x=sc.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; magic ob=new magic(x);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ob.input();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ob.show();<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }<br><br>&nbsp; &nbsp; &nbsp;&nbsp;<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-10 05:09:32 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1673729870</guid>
      </item>
      <item>
         <title>Suryansh Mishra</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1673731214</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/654544335/90d5445ab6dda76480a8be68a256ef8e/16285720718437567763612147554095.jpg" />
         <pubDate>2021-08-10 05:11:10 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1673731214</guid>
      </item>
      <item>
         <title>Suryansh Mishra</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1673731715</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/654544335/b558ff0acbf75b90e7d2bf54dbf1b70a/16285721183391102908484096544292.jpg" />
         <pubDate>2021-08-10 05:11:48 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1673731715</guid>
      </item>
      <item>
         <title>Nishtha Adarsh  XI-G</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1673761704</link>
         <description><![CDATA[<div>import java.util.*;<br>class Magic<br>{<br>&nbsp; &nbsp; static Scanner sc= new Scanner(System.in);<br>&nbsp; &nbsp; /** data members */<br>&nbsp; &nbsp; int Arr[], size;<br>&nbsp; &nbsp; /** parameterised constructor */<br>&nbsp; &nbsp; Magic(int x)<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; size=x;<br>&nbsp; &nbsp; &nbsp; &nbsp; Arr= new int[size];<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; /** function to input array elements */<br>&nbsp; &nbsp; void input()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Enter array elements:");<br>&nbsp; &nbsp; &nbsp; &nbsp; for(int i=0;i&lt;size;i++)<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Arr[i]= sc.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; /** function to compute and return sum of digits */<br>&nbsp; &nbsp; int sum_of_digits(int x)<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; int sum=0;<br>&nbsp; &nbsp; &nbsp; &nbsp; while(x!=0)<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sum= sum+(x%10);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x=x/10;<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; return sum;<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; /** function to return true if number is magic else return false */<br>&nbsp; &nbsp; boolean isMagic(int n)<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; int s= sum_of_digits(n);<br>&nbsp; &nbsp; &nbsp; &nbsp; while(s&gt;9)<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s= sum_of_digits(s);<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; if(s==1)<br>&nbsp; &nbsp; &nbsp; &nbsp; return true;<br>&nbsp; &nbsp; &nbsp; &nbsp; return false;<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; /** function to display all magic numbvers of given array */<br>&nbsp; &nbsp; void show()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Magic numbers are:");<br>&nbsp; &nbsp; &nbsp; &nbsp; for(int i=0;i&lt;size;i++)<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(isMagic(Arr[i])==true)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.print(Arr[i]+" ");<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; /** main function to create object and call functions */<br>&nbsp; &nbsp; public static void main()<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Enter the size of the array:");<br>&nbsp; &nbsp; &nbsp; &nbsp; int a= sc.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp; Magic ob= new Magic(a);<br>&nbsp; &nbsp; &nbsp; &nbsp; ob.input();<br>&nbsp; &nbsp; &nbsp; &nbsp; ob.show();<br>&nbsp; &nbsp; }<br>}<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp;&nbsp;</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-10 05:49:12 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/1673761704</guid>
      </item>
      <item>
         <title>Ayushi </title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/2662359215</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2107715557/df751d9170c8d1eebfae29d5bc4d6399/IMG_20230815_173015.jpg" />
         <pubDate>2023-08-15 12:01:34 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/2662359215</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/2662359338</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2107715497/206fbac1b9ba94683995c99951f91cd9/16921008819132701464154495301285.jpg" />
         <pubDate>2023-08-15 12:01:50 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/2662359338</guid>
      </item>
      <item>
         <title>Bhoomi </title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/2662365796</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2107715497/9995c419e5d110cab6b1166a90511ec9/16921015806321360784554470208211.jpg" />
         <pubDate>2023-08-15 12:14:20 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/2662365796</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/2662375398</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2107715557/58e561de1b421c874fb69ca479c147a3/IMG_20230815_175814.jpg" />
         <pubDate>2023-08-15 12:29:07 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/2662375398</guid>
      </item>
      <item>
         <title>Bhoomi</title>
         <author></author>
         <link>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/2662375460</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2107715497/a53880c5272ce7bd23eb113e815f6434/16921025373041858092555930459008.jpg" />
         <pubDate>2023-08-15 12:29:13 UTC</pubDate>
         <guid>https://padlet.com/alkamalik1/yz9c7q0sy07pf5kd/wish/2662375460</guid>
      </item>
   </channel>
</rss>
