Welcome.please sign up.
By signing up or logging in, you agree to our Terms of serviceand confirm that you have read our Privacy Policy.
Already a member? Go to Log In
Welcome.please login.
Forgot your password
Not registered yet? Go to Sign Up
#include <iostream> int main() { int n; std::cin >> n; std::cout << n; return 0; }
In your code, std::cin is used to take user input for the variable n. So whatever input you will provide, it will be assigned to n.