#include
using namespace std;
int main() {
int n;
cin>>n;
int max=0;
int arr[1000000000];
for(int i=0;i<n;i++){
cin>>arr[i];
}
for (int i=0;i<n;i++){
if (arr[i]>int max)
{
max=arr[i];
}
}
cout<<max;
}
#include
using namespace std;
int main() {
int n;
cin>>n;
int max=0;
int arr[1000000000];
for(int i=0;i<n;i++){
cin>>arr[i];
}
for (int i=0;i<n;i++){
if (arr[i]>int max)
{
max=arr[i];
}
}
cout<<max;
}
#include using namespace std; int main() { int n; cin>>n; int max=0; int arr[10000]; for(int i=0; i<n; i++){ cin>>arr[i]; } for (int i=0;i<n;i++){ if (arr[i]>max) { max=arr[i]; } } cout<<max; return 0; }
not passing all the test cases
hello @dipeshpandey2001
go to this link -> https://ide.codingblocks.com/
paste ur code in editor ,press ctrl +s and then save
a url will be generated in ur search bar copy that link and paste it here
code.cpp this is the link
copy the url from ur seach bar and paste it here
this is file name ,not a link
check now
okay ,understood thank you;)
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.