Java Program to find the 2nd Maximum and 2nd Minimum from an Array.
import java.util.Scanner; public class maxAndMin2nd { public static void main(String args[]) { Scanner sc=new Scanner(System.in); ...
import java.util.Scanner; public class maxAndMin2nd { public static void main(String args[]) { Scanner sc=new Scanner(System.in); ...
//Randomly Generate Sorted Array #include<iostream> #include<iomanip> #include<time.h> #include<stdlib.h> using name...
#include<stdio.h> int main() { int arr[30]={8,10,13,18,20,21,25,34,41,47}; int n=10,i,nvalue,index,j,pos; //printing the actua...
#include<iostream> #include<iomanip> using namespace std; int main() { int ar[11]={19,14,23,22,18,25,17,30,9,17,33}, n=1...
#include<iostream> using namespace std; void shiftNumbers(int a[],int n) { int i,j,k,tmp; for(i=0,j=0;i<n;i++) { if(a[i]==...
#include<iostream> using namespace std; void cyclicRotate(int a[],int n) { int tmp,j; tmp=a[n-1]; for(j=n-1;j>0;j--) { a...
#include<iostream.h> #include<conio.h> #include<stdlib.h> #include<iomanip.h> class Queue { int data[10]; ...
#include<iostream> #include<time.h> #include<stdlib.h> using namespace std; int sumArray(int[],int); int avgArray(...
#include<iostream.h> #include<conio.h> #include<stdlib.h> #include<iomanip.h> void main() { int a[100], fre...
//Mix of Many Array Programs with menu driven choice and functions #include<iostream.h> #include<conio.h> #include<...
#include<iostream.h> void main() { int a[]={1,2,4,5,6}; int b[]={2,3,5,7}; int n1, n2, i=0, j=0; n1=sizeof(a)/sizeof(int);...
//Program to Reverse Each Word of a String. #include<string.h> #include<iostream.h> #include<conio.h> void main() {...
Download the File. Click here to Watch the Explanation & Developing Video