" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
Hej na tej stronie masz :) chyba o too ci chodziło ?
#include <iostream> using namespace std;
int main(){ int n=0; cin>>n;
int max = 0; for(int i=0;i<n;i++) { int a=0; cin>>a; if(a > max) max = a; }
cout<<max;}