Dynamically allocate a single integer using new.Assign it a value read from input, print that value, and then free the memory using delete.
new
delete
Steps required in main():
main()
x
int
Important:
Example
Input:
42
Output:
Constraints:
new[]
delete[]
Test Cases
Test Results
Input
Expected Output