Write A Program To Find The Greatest Number Of Five Numbers By Using Array In C++?

1 Answers

Alongbar Daimary Profile
#include<iostream.h>

#include<conio.h>

void main(){

int Number[10];

cout<<"Enter ten numbers";

for (int I=0;I<10;I++)

cin>>Number[I];

int Big=0;

for(int j=0;j<10;j++){

if (Big<Number[I])

Big=Number[I];

}

cout<<"gretest Number:"<<Big;

getch();

}

// Here is your Program. But I've not compiled it. Wrote directly here.

Answer Question

Anonymous