Sun Oct 22 2023 07:18:51 GMT+0000 (Coordinated Universal Time)
Saved by @yolobotoffender
#include <iostream> #include<cmath> #include<iomanip> #include<string> using namespace std; int main() { string names; cout<<"enter names"<<endl; getline(cin,names); int length = names.length(); char LN= names[length-1]; cout<<LN<<endl; return 0; }
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments