Psl/c++ cheat sheet
data types
- int
- double
- char
- long long
input/output
c++: cin/cout
#include <iostream>
using namespace std;
main()
{
int x;
cin >> x;
cout << "answer = " << (x+1) << endl;
}
#include <iostream>
using namespace std;
main()
{
int x;
cin >> x;
cout << "answer = " << (x+1) << endl;
}