My issue
cant get output
My code
#include <bits/stdc++.h>
using namespace std;
int main() {
cout << 3+1;
cout <<endl;
cout << 2+1;
return 0;
}
Learning course: Learn C++
Problem Link: CodeChef: Practical coding for everyone
cant get output
#include <bits/stdc++.h>
using namespace std;
int main() {
cout << 3+1;
cout <<endl;
cout << 2+1;
return 0;
}
Learning course: Learn C++
Problem Link: CodeChef: Practical coding for everyone
The problem states you that
Output: 3 + 4
Whereas you output
cout << 3+1;
The corrected code should look like:
#include <bits/stdc++.h>
using namespace std;
int main() {
cout << 3+4;
cout <<endl;
cout << 2+1;
return 0;
}