I am getting wrong answer for this code. This is ADDNATRL

#include
using namespace std;

int main() {
// your code goes here
int N;
cin >> N;
int sum = (N * (N + 1) ) / 2;

cout << sum;
return 0;

}

Consider the test input:

1000000000
1 Like