Solved The First Code Is Correct The Second Code Has Several Errors

Solved The First Code Is Correct The Second Code Has Several Errors