shekhawat.amit1019
BAN USERclass Test
{
public static void main(String g[])
{
int i,j,k=0;
int A[] = {1, 3, 4, 6, 8, 10, 17, 34};
int B[] = {2, 8, 17, 33, 44, 66, 89, 100, 123};
int s1 = A.length;
int s2 = B.length;
int c[] = new int[s1+s2];
for(i=0,j=0;;)
{
if((i==s1) && (j==s2))
{break;}
else if((i == s1) && (B[j]>A[i-1]))
{c[k]=B[j];
j++;
k++;}
else if(A[i]==B[j])
{i++;
j++;}
else if(A[i]<B[j])
{c[k]=A[i];
i++;
k++;}
else if(B[j]<A[i])
{c[k]=B[j];
j++;
k++;}
}
for(i=0;i<k;i++)
{
System.out.print(c[i]+" ");
}
}
}
import java.util.Scanner;
class share
{
public static void main(String args[])
{
int in[] = new int[15];
int i,n,buy,sell;
Scanner s = new Scanner(System.in);
System.out.println("Enter No of Inputs");
n = s.nextInt();
for(i=0;i<n;i++)
{
in[i] = s.nextInt();
}
buy = in[0];
sell = in[0];
for(i=1;i<n;i++)
{
if(in[i]>sell)
{sell=in[i];}
if(in[i]<buy)
{buy=in[i];}
}
System.out.println("Buy:" + buy);
System.out.println("Sell:" + sell);
}
}
RepErickaLeibowitz, abc at 8x8
As a seasoned producer, my passion for music has propelled me through a dynamic career, marked by innovation and sonic ...
RepSharonSwann, AT&T Customer service email at A9
Bilingual, self-motivated Air Hostess with a proven record of providing excellent customer service and exceeding all corporate and personal expectations ...
RepNirvedDavis, abc at 8x8
Professional lifeguard offering expertise in water safety. Worked for more than six years in guarding and controlling the safety of ...
RepPrankHwa, Animator at Accolite software
I am a Reporter and responsible for delivering updates and analysis on current events with the main goal to keep ...
Repabigailbeyer415, Data entry keyer at Opentable
Outside the world of data entry, I find joy and relaxation in a unique hobby—Reddy Anna Casino. Whether it ...
RepMaryMartinez, Jr. Software Engineer at Automated Traders Desk
I am Mary, a knowledgeable sports official skilled at maintaining a safe environment for both players and observers, inspecting the ...
RepZoeyUhl, abc at 247quickbookshelp
With a highly experienced law clerk, well respected and writing proficient, detail oriented and proficient in preparing legal memos of ...
Repjj2234971, Applications Developer at ABC TECH SUPPORT
My role for teaching students in a particular subject area. I specialize in a variety of subjects and fields. such ...
- shekhawat.amit1019 April 12, 2013