%PENG 6.12
%Jeannette Spuhler for the exercise 2012/10/26
clear all; 
clc;
examined_in = input('Give in a word: ', 's');
examined=lower(examined_in);
lookfor_in = input('which letter should be looked for: ', 's');
lookfor=lower(lookfor_in);
result = examined == lookfor;
times = sum(result);
fprintf('%s is appearing %d times \n', lookfor, times);