0
Help me explain each line
#include <iostream> using namespace std; int main() { int n; cin>>n; //size of the array //your code goes here int nums = 0; cin>> nums; int max = nums; for(int i=0; i<n; i++) { cin>> nums; if(nums>max) max = nums; } cout << max << endl; return 0; }
1 Resposta
+ 1
Instead of asking for each line explanation, can you tell which part or statement is not understood by you..?
do you know how to find maximum value from array?