Solved The First Code Is Correct The Second Code Has Several Errors Including Missing Brackets

Solved The First Code Is Correct The Second Code Has Several Errors Including Missing Brackets