CS
cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sololearn
{
class Program
{
static void Main(string[] args)
{
int[] a={8,22,45,89};
int[] b={6,9,34,43};
int[] s=new int[a.Length+b.Length];
int i=0;
int j=0;
int k=0;
while(i<=a.Length && j<=b.Length){
if(a[i]>b[j]){
s[k]=a[i];
i++;
}else{
s[k]=b[j];
j++;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run