hi everbody I have a problem if I have program like this
in the end i need to ask if you want continue? yes no if yes then continie program,
I just dont understand that return principle
#include <iostream>
using namespace std;
int main () {
int n=0;
int flag=0;
int mas[2]={0,0};
do{
cin >> n;
if(flag ==0){
mas[0] = n;
}
if(flag == 1){
if(mas[0]>n){
mas[1]=mas[0];
mas[0]=n;
}
else mas[1]=n;
}