My issue
I am unable to solve thus problem
My code
#include <iostream>
using namespace std;
int main() {
// your code goes here
int N;
int out = 0;
for (int i = 1; i<N; i++) {
for (int j = N-1; j > 0; j--) {
if (i+j == N) out++;
}
}
cout << out << endl;
return 0;
}
Learning course: Basic Math using C++
Problem Link: CodeChef: Practical coding for everyone