Professional Documents
Culture Documents
pd1 Lab14
pd1 Lab14
1- 10 elemanlı tamsayı dizisine klavyeden değerler girilerek bir fonksiyona gönderilecek. Dizide yer
alan en büyük ilk iki sayıyı bularak ekrana yazdıran fonksiyonu yazınız.
The 10-element integer array will be sent to a function by entering values from the keyboard. Write a
function that finds the "biggest first two numbers" in the array and prints it to the screen.
2- Fonksiyona gönderilen string içerisindeki karakterleri alfabetik sıraya sokan programı yazınız.
Write a program that puts the characters in the string sent to the function in alphabetical order.
3- Kullanıcının gönderdiği kelime içerisinde kaç tane sesli harf olduğunu bulan fonksiyonu yazınız.
Write the function that finds how many vowels are in the word sent by the user.
4- Küçükten büyüğe doğru sıralı bir diziye, dizinin sırasını bozmayacak şekilde, verilen bir elemanı
ekleyen fonksiyonu yazınız.
Write a function that adds a given element to an array in ascending order without changing the order
of the array.
Girilen dizi : 1 3 5 7 9
Eklenecek sayi : 4