num = round (10 * rand + 1);
guess = input ('Guess an integer between 1 and 10: ');
load splat
while guess ~= num
    sound (y, Fs)
	if guess > num 
		disp ('Too high')
	else 
		disp ('Too low')
	end
    guess = input ( 'Your next guess please: ' );
end
disp ( 'Well done' )
load gong; sound (y, Fs)
