Problem Statement: A program that inputs an integer and displays the second last digit present in it.
cout << "Enter an integer: ";
last_digit = num/10%10;
cout << "Last digit of the entered integer is: "<<last_digit<<endl;
This solution is submitted by Tom and is absolutely correct. Congrats Tom! :) I hope you are having fun with C++ and I look forward to your future participation as well.