Suyun sıcaklık derecesine göre katı sıvı gaz halinde olduğu bulan ve ekrana yazan algoritma ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Başla Sayısal (sayı) Yaz(‘’sayı gir’’) sayı <- oku() Eğer((sayı>0)&&(sayı<100)) Yaz (‘’sıvı’’) Değilse eğer ((sayı<=0) Yaz (‘’buz’’) Değilse eğer (sayı>=100) Yaz (‘’gaz’’) Eğer bitti Bitti |
Yorum Yap