Please guide me as i am having confusion like how should i assign num1 and num2 in main …also correct me in this code…it is not complete yet
include
using namespace std;
int calcnum1(int n){
int j1,num1=0, num2=0;
int N;
for (int i = 0; i < n; i++){
cin>>N;
while (N>0)
{
j1=N%10;
if (j1%2 == 0)
{
num1 += j1;
}
else if (j1 %2 != 0 )
{
num2 += j1;
}
N /= 10;
}
}
return num1,num2;
}
int main(){
int n;
cin>>n;
return 0;
}