Created
November 16, 2013 22:52
-
-
Save omfaer/7506464 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #{Encoding: UTF-8} | |
| puts "Metin yazınız" | |
| i=gets.chomp.to_s #eğer tüm metni küçük harfe çevirerek bakmak istersek bu satira i=gets.chomp.downcase.to_s yazabiliriz... | |
| puts "Yazdığınız metin #{i} \n Bu metinde ;" | |
| dizi=["a","e","i","ı","ü","u","o","ö"] #downcase kullanmayacaklar bu diziye "A","E","I","İ","U","Ü"."O","Ö" eklesinler. | |
| #downcase ile metni küçülttüğümüzde I harfi i oluyor İ harfini küçültemiyor. | |
| dizi.each do |x=dizi.pop| | |
| if i[x] | |
| print x," ", "harfi var \n" | |
| else | |
| print x," ", "harfi yok \n" | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment