while
While kodlama ve yazılımda bir döngü kodudur. Türkçe ve basit olarak anlatacak olursak
int = 1;
while (i<=10)
gibi bir örnekte demiş oluyoruz ki "i 10 veya 10dan küçük iken" altına da çeşitli kodlar getirebiliriz ancak while döngüsünün önemi bu kadar. i 10 olana kadar şunu yap demiş olacağız ve i 10 olduktan sonra döngüden çıkmış olacağız.
Bu şekilde baktığımızda kodlama çokta zor görülmemiş olsa gerek.
Posted on HEDE - A dictionary for sharing knowledge in a friendly way
Şart değil ama "10" gibi binen bir değer için, 10 defa döne denecekse for tercih ediyorum
Fakat diyelim duman sensöründen gelen veri gibi,
ne zaman biteceği, kaç defa dönüleceği belli olmayan durumlarda,
while (dumanmiktarı > 1) { wantilatör çalışsın }
şeklinde kullanmak çok efektif oluyor ;)
Congratulations @ridvanunver! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :
Award for the total payout received
Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word
STOP
To support your work, I also upvoted your post!
Great post!
Thanks for tasting the eden!
You got a 6.54% upvote from @brupvoter courtesy of @ridvanunver!
You got a 7.41% upvote from @joeparys! Thank you for your support of our services. To continue your support, please follow and delegate Steem power to @joeparys for daily steem and steem dollar payouts!
You just received a 8.63% upvote from @honestbot, courtesy of @ridvanunver!
This post has received a 14.51% UpGoat from @shares. Send at least 0.1 SBD to @shares with a post link in the memo field.
Interested to earn daily? Delegate Steem Power to receive 95% payout rewards. Use this link https://on.king.net/shares to delegate SP to @Shares. Join us at https://steemchat.com/ discord chat.
Support my owner. Please vote @Yehey as Witness - simply click and vote.