My issue
Not getting the right calculation
My code
#include <bits/stdc++.h>
using namespace std;
int main() {
cout<< 8*9 << endl << 100+200*2;
}
Learning course: Learn C++
Problem Link: CodeChef: Practical coding for everyone
Not getting the right calculation
#include <bits/stdc++.h>
using namespace std;
int main() {
cout<< 8*9 << endl << 100+200*2;
}
Learning course: Learn C++
Problem Link: CodeChef: Practical coding for everyone
@shweta_2004
U have to do it like this.
#include <bits/stdc++.h>
using namespace std;
int main() {
cout << 8 * 9 << endl << 2 * (100 + 200);
return 0;
}
use (100 + 200)*2 instead of 100 + (200)*2