1

1- Kullanıcıdan alınan 3 tamsayının bir dik üçgenin üç kenarı olup olamayacağına karar veren programı yazınız.
2- 1’den 1000’e kadar olan sayılardan 10’a ve 9’a tam bölünenlerin toplamını bulan programı yapın
3-Sistem tarihinden gün değerini alarak çift veya tek sayı olup olmadığını bulan programı yapın
4- Girilen bir ifadeyi ikiye ayırarak ekranda yazan programı yapın
5- Kullanıcının girdiği bir sayının faktöriyelini , aynı sayının 1’den kendisine kadar olan sayıların toplamına bölen programı yapın.
CEVALAR
1-


<html>
<head>
<title>Dik Üçgen - Pisagor www.bilisimogretmeni.com </title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>  
<script language="JavaScript">
a=prompt("1. kenar")
b=prompt("1. kenar")
c=prompt("1. kenar")
buyuk=(Math.max(a,b,c))
if(buyuk==c)
{s1=a; s2=b}
if(buyuk==b)
{s1=a; s2=c}
if(buyuk==a)
{s1=c; s2=b}
if(buyuk*buyuk==s1*s1+s2*s2)
document.write("dik ucgen")
else
document.write("Dik ücgen değil")
</script>  
</body>
</html>

2-


<html>
<head>
<title>10 ve 9'a tam bülünen sayılar www.bilisimogretmeni.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>  
<script language="JavaScript">
var toplam=0;
for(var i=1;i<=1000;i++)
{
if(i%9==0 & i%10==0)
toplam=toplam+parseFloat(i);
}
document.write(toplam+"<br>");
</script>  
</body>
</html>

3-

<html>
<head>
<title>www.bilismogretmeni.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>  
<h3>Soru 3</h3>
<script language="JavaScript">var zaman = new Date()
gun= zaman.getDate();
if(gun%2==0)
document.write("Çift")
else
document.write("Tek")
</script>  
</body>
</html>

4-

<html>
<head>
<title>Soru 4</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body> 
<script language="JavaScript"> 
var metin
	metin = prompt("Metinsel bir ifade yazın.", "Buraya lütfen...")
	kr=metin.length
	yr=parseFloat(kr/2)
	document.write(metin.substr(0,yr)+"<br>")
	document.write(metin.substr(yr,yr+1))
	
</script> 
</body>
</html>

5-

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<html>
<head>
<title>www.bilisimogretmeni.com</title>
<script language="JavaScript">
function faktor(say)
{
faktoriyel=1;
for(i=1;i<=say;i++)
{
faktoriyel=faktoriyel*i;
}
return faktoriyel;
}
function toplam(say1)
{
toplam=0;
for(i=1;i<=say1;i++)
{
toplam=toplam+i;
}
return toplam;
}
</script>
</head>
<body>  
<script language="JavaScript">
sayi = prompt("Bir sayı giriniz", "Buraya lütfen...");
document.write(faktor(sayi)/toplam(sayi));
</script>
</body>
</html>
Bu İçeriğe Tepkin Ne Oldu?
  • 3
    ba_ar_l_
    Başarılı
  • 0
    gayet_yi
    Gayet İyi
  • 1
    te_ekk_rler
    Teşekkürler
  • 5
    anlamad_m
    Anlamadım
  • 0
    yetersiz
    Yetersiz
İlginizi Çekebilir
Subscribe
Bildir
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

1 Yorum
Inline Feedbacks
View all comments