Soru 25: The Fibonacci sequence is defined by the recurrence relation: Fn = Fn−1 + Fn−2, where F1 = 1 and F2 = 1. Hence the first 12 terms…
Yazılım, Yapay Zeka, IOT, Mekatronik
Soru 25: The Fibonacci sequence is defined by the recurrence relation: Fn = Fn−1 + Fn−2, where F1 = 1 and F2 = 1. Hence the first 12 terms…
Soru 24: A permutation is an ordered arrangement of objects. For example, 3124 is one possible permutation of the digits 1, 2, 3 and 4.…
Soru 22: Using names.txt (right click and ‘Save Link/Target As…’), a 46K text file containing over five-thousand first names, begin by sorting it into alphabetical order. Then…
Soru 21: Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). If d(a) = b and d(b) = a, where a ≠ b, then a and b are…
Soru: The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? ————————– 13195…
Soru: https://projecteuler.net/problem=2 Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first…
PHP’de Formdan gelen verileri $_POST dizisi kullanarak okuma ve işleme Tüm Farklı(text, radio,check, button, value, select, textarea) form elemanlarının $_POST ile değerlerinin okunduğu bir örnek:…
$GLOBALS kullanım örneği: <?php $a = 5; function topla($b) { return $GLOBALS[“a”]+$b; } echo “Toplam = “.topla(20); ?> 2.133 Gösterim
$_SERVER dizisi içindeki elemanlar gösterimler ve kullanımları: <?php phpinfo(); echo “<hr>”; foreach($_SERVER as $key => $value) { echo $key.” ->”.$value.”<br>”; } ?> <?php echo $_SERVER[‘PHP_SELF’];…
PHP ile yeni bir fonksiyon tanımlama ve kullanma örneği: <?php $c = 20; function topla($a, $b) { return ($GLOBALS[‘c’]+$a+$b); } echo topla(5,10).”<hr>”; function sayilari_topla(…$sayilar) {…