Santigrat dereceyi fahrenayt dereceye çevirmeden önce formülü bir hatırlayalım.
Santigrat dereceyi Fahrenhayt dereceye çevirmek için aşağıdaki formül kullanılır:
°F = °C x 9/5 + 32
Derece fahrenait dönüşümü
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | <!DOCTYPE html> <html lang="tr"> <head> <meta charset="UTF-8"> <title>AlgoritmaOrnekleri.com</title> </head> <body> Santigrat Derece Girin: <input type="text" id="sayi"><br> <input type="button" id="hesapla" value="Fahrenayt Hesapla"> <script> var hesaplaBtn= document.getElementById("hesapla"); hesaplaBtn.onclick=function(){ var deg=Number(document.querySelector("#sayi").value); fah = deg * 1.8 + 32; window.alert("Fahranayt Derece:"+fah); } </script> </body> </html> |
Add Comment