// ~cs35/string_4.cpp
#include "CS35lib.h"

int main ()
{
	int length_of_name, i;
	char name[40];
	
	cout <<"Enter your full name: ";
	getline(name);
	length_of_name = strlen(name);
	
	cout <<"The length of your name is "<<length_of_name;
	cout<<endl;
	cout <<"Here is your name written backwards: ";
	for (i = length_of_name - 1; i >= 0; i--)
	{
		cout<<name [i];
	}
	cout<<endl;
	return 0;
}
