Answer:
The most straight forward way to do it: in general string are zero index based array of characters, so you need to get the length of the string, subtract one and that will be the last character, some expressions in concrete languages would be:
In Python:
name = "blair"
name[len(name) - 1]
In JavaScript:
name[name.length - 1]
In C++:
#include <string>
string name = "blair";
name[name.length() - 1];
int sum = 0, n;
do {cin>>n; sum+=n;}while (n!=0);
cout<<sum;
Dennis Ritchie
C was originally developed at Bell Labs by Dennis Ritchie between 1972 and 1973 to make utilities running on Unix
A
Explanation: