Scientific calculator basic code