Bu örnekte kullanıcının girdiği sayının kaç basamaklı olduğunu ekrana yazdıracağız.
Bu örneği yaparken while döngüsünü kullanacağız.
#include <stdio.h>
main()
{
int sayi;
int basamak = 0;
printf("Sayi giriniz: ");
scanf("%d",&sayi);
while(sayi > 0){
sayi = sayi / 10;
basamak++;
}
printf("Giirlen sayi %d basamaklidir.",basamak);
}
Kullanıcıdan bir sayı alıyoruz. Daha sonra bu sayı 0’dan büyük oluncaya kadar çalışan bir while döngüsü oluşturuyoruz.
Bu döngü her döndüğünde “basamak” adındaki değişkeni 1 arttırıp sayıyı 10’a bölüyor.
Örneğin kullanıcı 1916 sayısını girdiği zaman program şu şekilde çalışıyor:
1916 / 10 = 191 (sayi = 191), basamak = 1
191 / 10 = 19 (sayi = 19), basamak = 2
19 / 10 = 1 (sayi = 1), basamak = 3
1 / 10 = 0.1 (sayi = 0.1) , basamak = 4
Burada sayı 0.1 olunca int değer olarak sayı 0 olduğu için döngü çalışmasını durdurur. Bu şekilde basamak sayısını bulur.
Kodun ekran çıktısı da şu şekildedir:

128 Yorum
Hi there would you mind stating which blog platform you’re working with? I’m going to start my own blog soon but I’m having a hard time choosing between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design seems different then most blogs and I’m looking for something completely unique. P.S Sorry for getting off-topic but I had to ask!
fenofibrate 160mg sale cheap fenofibrate 160mg tricor 200mg sale
tadalafil 20mg cheap viagra pills 25mg order generic viagra
ketotifen order buy generic geodon 40mg buy tofranil generic
minoxidil order order tamsulosin 0.4mg generic ed pills otc
acarbose 50mg for sale repaglinide 1mg ca griseofulvin online
aspirin 75mg without prescription cheap aspirin 75mg zovirax online order
I haven?¦t checked in here for some time as I thought it was getting boring, but the last several posts are great quality so I guess I?¦ll add you back to my daily bloglist. You deserve it my friend :)
order dipyridamole generic pravastatin 10mg pills pravachol online buy
buy generic melatonin for sale buy meloset cheap buy generic danocrine 100mg
dydrogesterone where to buy januvia 100mg without prescription empagliflozin price
florinef cost buy rabeprazole generic brand loperamide 2mg
order etodolac 600 mg monograph 600mg ca pletal 100 mg usa
prasugrel 10mg without prescription buy generic chlorpromazine 100mg detrol canada
ferrous sulfate 100mg brand risedronate 35 mg price sotalol 40mg tablet
mestinon 60 mg price feldene 20 mg canada how to get maxalt without a prescription
buy vasotec 5mg generic order generic bicalutamide buy cheap generic duphalac
xalatan online buy cheap xeloda 500mg order generic rivastigmine 6mg
premarin 600 mg uk buy sildenafil 50mg without prescription sildenafil brand
buy omeprazole 10mg generic buy prilosec online buy generic metoprolol
order generic telmisartan 80mg purchase molnunat buy molnupiravir 200mg generic
order tadalafil 40mg pills cialis 20mg us purchase viagra online
buy cenforce 50mg generic where to buy cenforce without a prescription chloroquine order online
order modafinil deltasone ca buy generic prednisone online
omnicef over the counter order metformin 500mg order prevacid 15mg online cheap
buy isotretinoin 40mg without prescription order zithromax 250mg pill purchase azithromycin online cheap
where to buy azipro without a prescription gabapentin 800mg ca buy neurontin 100mg online
order lipitor 20mg sale proventil 100mcg tablet purchase norvasc pill
best no deposit free spins lasix where to buy order lasix for sale
pantoprazole generic purchase lisinopril sale pyridium 200mg pill
online casinos for usa players where to buy ventolin without a prescription albuterol drug
blackjack poker online live dealer blackjack stromectol 12 mg
symmetrel where to buy buy amantadine 100 mg pills dapsone price
online roulette for real money clavulanate brand buy levothyroxine no prescription
But not all casinos have safe payment methods that you trust, which is why PayPal casinos have become the gold standard of deposit methods. Once you’ve had fun playing online casino games, such as slots and live casino games, you can use PayPal to claim your winnings. You do this by going to the cashier page of your casino account, selecting PayPal, and inputting an amount (equal to or greater than the casino’s minimum but not more than your balance). PayPal withdrawals are typically processed in under 24 hours. Once the funds are sent to your eWallet, they can stay there or you can send them via your bank transfer to your account. Alternatively, you can use your eWallet balance to make PayPal payments at other casinos online stores. When it comes to online gambling, there’s always one thing players want to know: how easy is it to actually collect your winnings? This is where wagering requirements come into play. You may have heard the term thrown around before, and if you’re not familiar, it’s definitely worth understanding. Simply put, wagering requirements refer to the number of times you have to bet a bonus or deposit before you can withdraw any winnings. It’s essentially a safeguard for online casinos to prevent players from simply taking the money and running. While it may seem like a hassle, it’s important to understand these requirements to make informed decisions about where to gamble online.
https://foxtrot-wiki.win/index.php?title=Top_mastercard_online_casinos
Sitemap 18+ only. Terms Apply, gamble responsibly. Play free slots online NOW to WIN like a VIP with Black Diamond Casino’s slot machines! CasinoEncyclopedia is one of the largest Global information sources relating to the online gaming Industry. Our team has been rating and reviewing casinos, Sportsbooks, Poker Rooms, eSports, and Bingo Rooms since 2007. Casinos that do not meet our high standards are not listed. If they are listed and their reputation becomes questionable, we tell you. CasinoEncyclopedia is one of the largest Global information sources relating to the online gaming Industry. Our team has been rating and reviewing casinos, Sportsbooks, Poker Rooms, eSports, and Bingo Rooms since 2007. Casinos that do not meet our high standards are not listed. If they are listed and their reputation becomes questionable, we tell you.
clomiphene 100mg brand clomid 100mg price purchase azathioprine for sale
medrol 8 mg without a doctor prescription aristocort 10mg tablet order aristocort 4mg generic
purchase levitra online cheap levitra 10mg over the counter buy cheap tizanidine
buy aceon online cheap fexofenadine 120mg brand order generic allegra 120mg
phenytoin uk order dilantin 100 mg online buy oxybutynin pills
purchase ozobax pills order amitriptyline 50mg pill buy ketorolac without a prescription
buy claritin buy altace order priligy sale
buy generic lioresal order toradol online cheap buy ketorolac without a prescription
buy fosamax no prescription fosamax 70mg generic order macrodantin 100mg for sale
buy generic propranolol online cost clopidogrel 75mg plavix 150mg tablet
nortriptyline pills panadol 500 mg cost buy cheap anacin
buy amaryl buy glimepiride without a prescription purchase etoricoxib for sale
order coumadin 5mg pill order reglan 10mg online buy metoclopramide pills
purchase orlistat pill purchase orlistat pills purchase diltiazem generic
pepcid price buy prograf tacrolimus 1mg pills
azelastine 10ml over the counter buy acyclovir 400mg for sale irbesartan 150mg oral
order nexium 20mg without prescription topamax 200mg over the counter purchase topamax online
imitrex brand sumatriptan online buy buy avodart 0.5mg online cheap
zyloprim 100mg oral buy clobetasol paypal crestor drug
zantac 150mg canada zantac price order celebrex 200mg for sale
buspirone 10mg sale buy ezetimibe tablets amiodarone 200mg for sale
motilium 10mg drug domperidone pill sumycin 500mg without prescription
order tamsulosin 0.4mg pills buy tamsulosin without prescription buy simvastatin 20mg without prescription
aldactone 25mg over the counter valacyclovir tablet order generic finasteride
help writing paper essay writers online help writing a paper for college
purchase forcan oral ampicillin purchase cipro for sale
buy flagyl pills for sale cheap cephalexin keflex 500mg oral
lamotrigine 200mg tablet oral vermox 100mg mebendazole usa
cleocin price clindamycin generic buy fildena without prescription
Dear immortals, I need some wow gold inspiration to create.
retin cream us tadalafil 10mg brand buy avana 200mg generic
buy nolvadex 20mg sale order nolvadex 20mg for sale symbicort usa
Абузоустойчивый VPS
Виртуальные серверы VPS/VDS: Путь к Успешному Бизнесу
В мире современных технологий и онлайн-бизнеса важно иметь надежную инфраструктуру для развития проектов и обеспечения безопасности данных. В этой статье мы рассмотрим, почему виртуальные серверы VPS/VDS, предлагаемые по стартовой цене всего 13 рублей, являются ключом к успеху в современном бизнесе
order tadacip 20mg generic tadacip 10mg uk order indomethacin 50mg pills
cefuroxime 250mg us purchase cefuroxime online cheap robaxin order online
buy desyrel for sale buy cheap generic suhagra buy clindamycin gel
https://withoutprescription.guru/# viagra without a doctor prescription walmart
how to buy terbinafine gambling online win real money casino money
buy aspirin 75 mg 300 free slots no download no registration slot games online
best essay service research paper writers buy suprax 100mg pill
https://indiapharm.guru/# top 10 pharmacies in india
my best friend essay writing real money casino free casino games
VPS SERVER
Высокоскоростной доступ в Интернет: до 1000 Мбит/с
Скорость подключения к Интернету — еще один важный фактор для успеха вашего проекта. Наши VPS/VDS-серверы, адаптированные как под Windows, так и под Linux, обеспечивают доступ в Интернет со скоростью до 1000 Мбит/с, что гарантирует быструю загрузку веб-страниц и высокую производительность онлайн-приложений на обеих операционных системах.
https://mexicopharm.shop/# mexican rx online
buy trimox 500mg generic cheap trimox 250mg buy biaxin no prescription
win79
sildenafil canada over the counter sildenafil brand name india sildenafil 100mg
https://edpills.monster/# mens erection pills
order rocaltrol 0.25 mg without prescription calcitriol 0.25mg sale cheap tricor 160mg
Buy generic Levitra online Levitra 20 mg for sale Levitra tablet price
http://edpills.monster/# mens ed pills
https://medium.com/@dorsey_all64856/дешевый-vps-на-ubuntu-с-гарантированными-ресурсами-069d0fdeda68
VPS SERVER
Высокоскоростной доступ в Интернет: до 1000 Мбит/с
Скорость подключения к Интернету — еще один важный фактор для успеха вашего проекта. Наши VPS/VDS-серверы, адаптированные как под Windows, так и под Linux, обеспечивают доступ в Интернет со скоростью до 1000 Мбит/с, что гарантирует быструю загрузку веб-страниц и высокую производительность онлайн-приложений на обеих операционных системах.
where can i get sildenafil without prescription buy sildenafil australia buy sildenafil usa
https://edpills.monster/# generic ed drugs
Đây là một loại giấy nhỏ có kích thước lớn hơn bằng lái xe và được cấp khi bạn làm thủ tục đăng ký xe chính chủ tại cơ quan công an. Cavet xe có tên quen thuộc với người miền Bắc là giấy đăng ký xe. Dựa vào loại giấy tờ này mà chúng ta có thể xác định được chiếc xe máy đó có chính chủ hay không. Bạn đã từng nghe tới hình thức vay tiền bằng cavet xe máy online chưa, chỉ cần đăng ký xe mà hạn mức lên tới 90% giá trị xe. Cùng tìm hiểu về hình thức vay vốn mới lạ và cực kỳ hấp dẫn này ngay trong bài viết sau nhé! Trên đây là những chia sẻ của iVay Tiền về dịch vụ vay tiền bằng đăng ký xe máy không chính chủ. Dù điều kiện và thủ tục vay đơn giản nhưng bạn vẫn nên cân nhắc kỹ về khả năng thanh toán nợ trước khi quyết định vay nhé. Chúc bạn sẽ sớm tìm được giải pháp khắc phục khó khăn tài chính phù hợp!
http://www.atoe.co.kr/bbs/board.php?bo_table=free&wr_id=24221
Đầu tiên các bạn tiến hành ký kết hợp đồng mua bán xe khi đã chọn được cho mình một chiếc xe ưng ý nhất. Đặc cọc cho đại lý trước một khoản tiền theo hợp đồng, thông thường người mua cần đặt ít nhất 20-30% giá trị của chiếc xe. Hợp đồng mua bán xe cần rõ ràng, đầy đủ và đúng theo quy định của pháp luật ban hành. Không chỉ mua xe để phục vụ gia đình, nhu cầu đi lại, tập khách hàng mua xe chạy dịch vụ, hợp đồng, Grab Car cũng ngày một đông hơn. Điều này giúp kích cung các gói hỗ trợ từ ngân hàng với lãi suất cực hấp dẫn.
order catapres 0.1 mg online cheap tiotropium bromide 9 mcg pill order spiriva 9mcg online cheap
buy sildenafil tablets sildenafil 100mg cost sildenafil 20 mg tablets online
best doctor prescribed acne medication acne treatment for teenage boys order oxcarbazepine 300mg pill
http://sildenafil.win/# buy sildenafil online paypal
non prescription ed pills ed treatment pills pills for erection
where to get amoxicillin over the counter: amoxicillin 500mg over the counter – can you buy amoxicillin over the counter canada
doxycycline for sale uk Buy doxycycline for chlamydia doxycycline over the counter australia
generic minocin 100mg buy ropinirole 2mg online cheap requip 1mg generic
buy generic zithromax no prescription: zithromax antibiotic – zithromax online no prescription
buy zithromax 1000mg online zithromax antibiotic without prescription where to buy zithromax in canada
buy uroxatral 10mg without prescription allergy pills on sale best painkiller for sensitive stomach
doxycycline generic pharmacy Buy doxycycline hyclate doxycycline generic price
amoxicillin 500mg cost: amoxil for sale – amoxicillin 800 mg price
amoxicillin buy no prescription buy amoxil buy amoxicillin without prescription
strongest sleeping pills for insomnia top selling sleep aids doctors specializing in weight loss near me
buy letrozole 2.5mg without prescription order albendazole 400mg generic abilify buy online
generic zithromax india: zithromax buy online – buy zithromax online australia
zithromax buy where can i buy zithromax in canada order zithromax without prescription
cipro: Get cheapest Ciprofloxacin online – buy cipro cheap
canadian pharmacy online ship to usa: online pharmacy no prescription – pharmacy express online
legitimate canadian internet pharmacies: online pharmacy no prescription – medicine prices
canadian pharmacies no prescription needed Top mail order pharmacies aarp recommended canadian pharmacies
smoking cessation medication prescribing chart how safe are osteoporosis drugs buy painkillers online overnight
buy provera 10mg generic generic microzide 25 mg hydrochlorothiazide 25 mg ca
buying from online mexican pharmacy: mexican pharmacy – п»їbest mexican online pharmacies
no 1 canadian pharcharmy online: buy prescription drugs online without doctor – drug stores canada
india pharmacy mail order reputable indian online pharmacy top online pharmacy india
list of canadian pharmacies: cheap drugs online – recommended canadian online pharmacies
genital herpes medication in stores emergency inhaler boots is medicine required for prediabetes
periactin 4mg uk cost luvox 100mg nizoral 200mg uk
wellbutrin online india: Buy bupropion online Europe – can you buy wellbutrin over the counter
paxlovid price: buy paxlovid – paxlovid cost without insurance
ventolin 2018: Ventolin inhaler online – ventolin free shipping
Paxlovid over the counter http://paxlovid.club/# paxlovid india
cymbalta 20mg brand buy generic glucotrol online buy provigil without prescription
buy ventolin inhaler without prescription: Ventolin inhaler online – ventolin cost australia
generic wellbutrin cost: Wellbutrin online with insurance – wellbutrin 100 mg
what is peptic duodenitis best otc for peptic ulcer different types of uti bacteria