#include<iostream>using namespace std;int main(){ int n; int array[20]; cout<<"Enter no of Element to enter:"; cin>>n; cout<<"Enetr Array Elements:"<<endl; for(int...
Tuesday, 6 October 2015
Write a program to find greatest number in given array.
#include<iostream>
using namespace std;
int main()
{
int array[10],n,temp=0; // initilize the variables
cout<<"Enter no of element :";
cin>>n;
for(int i=1;i<=n;i++) //loop for enter the array element
...