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; }

30th Mar 2022, 7:37 PM
Mugabi Joshua
Mugabi Joshua - avatar
1 Réponse
+ 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?
30th Mar 2022, 8:32 PM
Jayakrishna 🇮🇳