Bu örnekte kullanıcı tarafından girilen bir sayıyı nasıl okuyacağımızdan bahsedeceğim.
Farklı dillerde kullanıcıdan nasıl sayı-input alınır ? Detaylıca incelemek için
C Kullanıcıdan Sayı Alma
Java Kullanıcıdan Sayı Alma
sayfalarını ziyaret edebilirsiniz.
C# dilinde kullanıcıdan veri almak için Console.ReadLine() fonksiyonunu kullanıyoruz.
using System;
public class VeriAlma
{
public static void Main()
{
Console.Write("Bir sayi giriniz: ");
int sayi = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Girilen sayi : " + sayi);
}
}
C# dilinde Console.ReadLine() fonksiyonu “string” bir ifade döndürür. Bu yüzden kullanıcıdan sayı alacağız zaman Convert.ToInt32() fonksiyonu ile alınan string ifadeyi integer veri tipine çevirmiş oluyoruz.
Kodun ekran çıktısı şu şekildedir:

222 Yorum
Önem Derecesi Kod Açıklama Proje Dosya Çizgi Gizleme Durumu
Hata CS0029 ‘string’ türü örtülü olarak ‘char’ türüne dönüştürülemez kullanıcıdan değer alma C:\Users\LENOVO\source\repos\kullanıcıdan değer alma\Program.cs 17 Etkin
bu hatayı kaldırmak için ne yapmalıyım?
Kodunu paylaşabilir misin ?
Console.WriteLine(“Notunuzu Giriniz:”);
int not = Convert.ToInt32(Console.ReadLine());
if (not 45)
{ Console.WriteLine(“Tebrikler Geçtiniz “);
Console.Read();
Nerede yanlış yaptığım hakkında fikriniz varsa lütfen yardımcı olun şu olayı bir türlü çözemedim.
Tum kodu paylasir misin
not degiskeninden sonra > isareti koymayi unutmussun sanirim.
Birde kume parantezini kapatmayi unutmussun.
Console.WriteLine(“Notunuzu Giriniz:”);
int not = Convert.ToInt32(Console.ReadLine());
if (not 45)
{ Console.WriteLine(“Tebrikler Geçtiniz “);
Console.Read();
}
Bir önceki yorumda kodun bazı kısımları silinmiş doğrusu bu ama yinede çalışmıyor
Console.WriteLine(“Notunuzu Giriniz”);
int not = Convert.ToInt32(Console.ReadLine());
if (not >= 45)
{
Console.WriteLine(“Tebrikler Geçtiniz “);
}
Console.ReadLine();
bu sekilde yapman gerek, sen not 45 demissinde 45 den kucukmu buyukmu onu dememissin
Good info. Lucky me I reach on your website by accident, I bookmarked it.
Thanks-a-mundo for the blog post.Much thanks again.
buy fenofibrate 160mg without prescription buy fenofibrate 200mg generic buy tricor 200mg generic
Aw, this was an extremely nice post. Finding the time and actual effort to create a very good articleÖ but what can I sayÖ I hesitate a lot and don’t manage to get anything done.
What a material of un-ambiguity and preserveness of precious familiarity about unpredicted feelings.restolin review
A fascinating discussion is worth comment. There’s no doubt that that you should publish more on this subject matter, it might not be a taboo matter but generally people do nottalk about such issues. To the next! Many thanks!!
Thank you for your blog.Thanks Again. Really Cool.Loading…
Hello mates, fastidious paragraph and nice urging commented here, I am truly enjoying by these.
Hello there! Do you know if they make any pluginsto assist with Search Engine Optimization? I’mtrying to get my blog to rank for some targeted keywords but I’m not seeing very good success.If you know of any please share. Cheers!
order generic cialis 10mg order sildenafil pill order viagra 50mg online
buy ketotifen 1mg pills order ziprasidone for sale buy imipramine 25mg online
the best day of my life essayessay proofreading service
minoxidil where to buy tamsulosin 0.2mg sale buy ed pills sale
I value the blog article.Really thank you! Want more.
order precose online cheap order precose 25mg online griseofulvin online order
An intriguing discussion is worth comment. I do think that you ought to publish more on this issue, it might not be a taboo subject but usually people do not speak about these issues. To the next! Cheers!!
slots for real money slots for real money online slot games
purchase aspirin generic order generic aspirin oral imiquimod
That is a good tip particularly to those fresh to the blogosphere. Short but very accurate info… Thank you for sharing this one. A must read post.
I do love the way you have framed this specific difficulty plus it does give me some fodder for consideration. Nonetheless, coming from everything that I have seen, I really wish as other feedback stack on that people today stay on issue and don’t start on a tirade involving the news of the day. Yet, thank you for this excellent piece and while I do not concur with this in totality, I respect your point of view.
Someone necessarily help to make severely posts I might state.
buy dipyridamole 25mg lopid 300 mg over the counter brand pravastatin 20mg
This is one awesome blog.Really looking forward to read more.
Very informative blog post.Really thank you! Really Great.
I enjoy reading an article that will make men and women think. Also, thank you for permitting me to comment.
purchase essays online – write thesis ed pills online
Thanks a lot for the blog post. Keep writing.
Appreciate you sharing, great post. Great.
It’s really a nice and useful piece of info. I’m glad that you shared this helpful info with us. Please keep us informed like this. Thanks for sharing.
voltaren dosage voltaren pills voltaren tablets
stromectol cvs ivermectin capsules for humans
duphaston 10mg us purchase sitagliptin sale buy jardiance pills
florinef for sale order loperamide 2 mg sale loperamide cheap
Tokyo Olympics opening ceremonydydob 7/23/2021
It is really a great and useful piece of info. I’m glad that you shared this helpful info with us. Please keep us informed like this. Thanks for sharing.
monograph pills buy generic monograph over the counter order cilostazol 100 mg
buy prasugrel for sale buy detrol for sale generic detrol
Hey There. I discovered your blog using msn. This is a really neatly written article.I will be sure to bookmark it and return to read more of your usefulinfo. Thank you for the post. I’ll definitely comeback.
What’s up colleagues, how is the whole thing, and what you want to say about this article, in my view its genuinely amazing in favor of me.
tinder dating app , tinder dating appwhat is tinder
Hi there, just became alert to your blog through Google, and found that it is really informative. I am going to watch out for brussels. I’ll appreciate if you continue this in future. Lots of people will be benefited from your writing. Cheers!
Regards, Valuable stuff!how to succeed in college essay college essays academic ghostwriting services
buy generic ferrous sulfate 100mg order ascorbic acid 500mg sale betapace 40 mg over the counter
You may have some real insight. Why not hold some kind of contest for your readers?
whoah this blog is fantastic i really like studying your articles. Stay up the great work! You know, lots of persons are searching around for this information, you can aid them greatly.
I’ll immediately clutch your rss as I can not to find your e-mail subscription link or newsletter service. Do you have any? Please let me realize in order that I may just subscribe. Thanks.
Hi there! I know this is kind of off topic but I was wondering if you knew where Icould locate a captcha plugin for my comment form?I’m using the same blog platform as yoursand I’m having difficulty finding one? Thanks a lot!
brand mestinon 60 mg order mestinon pills maxalt order
order enalapril 10mg online buy generic enalapril 5mg cheap lactulose
cost zovirax rivastigmine price exelon price
betahistine 16mg usa zovirax drug probenecid 500 mg canada
omeprazole 20mg generic prilosec 10mg for sale order metoprolol pills
purchase premarin for sale buy generic premarin online viagra 50mg for sale
Thanks so much for the blog article.Really thank you! Really Great.
order tadalafil 5mg for sale buy generic viagra 100mg sildenafil 50mg drug
buy micardis 20mg for sale order molnupiravir molnunat without prescription
Pero le pido que, al escuchar lo que le digo, recuerde que todo consejo solo puede ser producto del hombre que lo da
Im thankful for the article post.Thanks Again. Much obliged.
Thanks-a-mundo for the post.Thanks Again. Cool.
Hey, thanks for the blog post.Really thank you! Keep writing.
cenforce 50mg price purchase chloroquine for sale chloroquine 250mg without prescription
modafinil cheap buy promethazine generic deltasone cost
I’m extremely impressed with your writing skills as well as with the layout on your blog. Is this a paid theme or did you modify it yourself? Anyway keep up the nice quality writing, it is rare to see a nice blog like this one today..
Appreciate you sharing, great blog article.Really thank you! Want more.
cefdinir 300mg us glucophage 1000mg ca lansoprazole 15mg over the counter
A motivating discussion is definitely worth comment.I believe that you should write more on this subject,it may not be a taboo subject but typically people don’t discuss such issues.To the next! Kind regards!!
Current organizations do not read each of the four hundred or greater resumes they get – for just one job posting! In reality, they will quickly toss aside ninety percent of them, if a resume does nothing to win the reader’s attention.
Thanks in favor of sharing such a pleasant idea, piece of writing is good, thats why i have read it completely
Thank you ever so for you article post.Really thank you! Cool.
Great article.Feel free to surf to my blog New Flow XL
Thanks , I have recently been looking for information approximately this topic for agesand yours is the greatest I’ve found out so far. But, what concerning the bottomline? Are you sure about the supply?
What’s up, after reading this awesome piece of writing i am as well delighted to share my know-how here with colleagues.
how to buy isotretinoin amoxicillin 250mg for sale buy azithromycin medication
where can i get ivermectin ivermectin topical
buy lipitor 40mg sale buy albuterol 100 mcg sale where to buy norvasc without a prescription
buy azipro 500mg online prednisolone oral buy neurontin 100mg generic
Muchos Gracias for your blog.Thanks Again. Cool.
I blog frequently and I genuinely thank you for your information. The article has truly peaked my interest. I will bookmark your blog and keep checking for new information about once per week. I subscribed to your RSS feed as well.
play poker online for money free casino order lasix 100mg generic
protonix 20mg usa cheap pantoprazole 20mg purchase pyridium generic
blackjack online for real money buy albuterol online cheap order ventolin inhalator
Thanks for the blog.Thanks Again. Awesome.
Im thankful for the article post.Really looking forward to read more. Great.
A big thank you for your post.Really looking forward to read more.
online casinos cost stromectol 6mg ivermectin 3mg
amantadine 100mg canada buy tenormin 100mg sale purchase dapsone online
Great article post.Much thanks again. Want more.
I loved your post.Really thank you!
play blackjack online augmentin online levoxyl pills
A big thank you for your article post.Really thank you! Keep writing.
Merely a smiling visitant here to share the love (:, btw outstanding design.
Very interesting details you have mentioned , appreciate it for putting up. “I don’t know what you could say about a day in which you have seen four beautiful sunsets.” by John Glenn.
I needed to thank you for this wonderful read!! I certainlyloved every little bit of it. I have got you bookmarked to look at new things you post…Here is my blog post :: chengdian.cc
I appreciate you sharing this blog.Much thanks again. Really Great.
Thanks for the article post.Thanks Again. Awesome.
I really enjoy the article.Really looking forward to read more. Really Great.
Very good blog. Really Cool.
medrol for sale buy methylprednisolone pills for sale order generic aristocort 4mg
Hey! I’m at work browsing your blog from my new iphone 3gs!Just wanted to say I love reading through your blog and look forward to all your posts!Carry on the superb work!
Thank you for any other informative blog. The placeelse may I get that type of information written in such an ideal method?I have a mission that I am simply now operating on,and I have been on the look out for such information.
serophene pill purchase imdur sale buy azathioprine pills for sale
Slots and Casino No Deposit Bonus Codes – 100 Free Spins! Sign up now and receive 100 Free… Red Dog Casino’s lucrative free spin bonus feature is one of its main draws. New players are greeted with a hefty welcome bonus package that includes a 225% match bonus on their first deposit. The free spins may be utilized on specific slot games and are distributed progressively over many days following the first deposit. Furthermore, the casino provides ongoing promotions for current players, such as daily, weekly, and monthly free spin bonuses, special events, and an exclusive VIP rewards program. Deposit bonuses require depositing funds at a casino site. They give you a chance to earn even more bonus money with some of the top operators in PA like BetMGM Casino. Learn about the best casino bonuses in PA and how they work below.
https://www.bookmarking-planet.win/wild-horse-pass-casino
Valet Parking $7 (Accessible Parking $2, VIP and Elite Club Members FREE) Online casinos frequently offer players extra money as an incentive to sign up and play. However, this money will have requirements that you’ll need to meet before you can withdraw any winnings from playing with it, aka playthrough or wagering requirements. Generally, you must wager a multiple of the bonus amount. This varies from casino to casino, and some games contribute more than others to the playthrough requirement. Slots usually contribute 100%, while low-edge games like blackjack may contribute less. Coins are a thing of the past. With an easy ticketing system and numerous redemption kiosks throughout the casino, playing has never been more convenient. Whether it’s at the nightclub or at the only dayclub in South Florida, guests can expect the hottest names to make an appearance. To learn more about DAER Nightclub and Dayclub, go to hardrocknightlife.
levitra 20mg ca buy zanaflex no prescription tizanidine pills
coversyl canada buy clarinex no prescription buy allegra 120mg for sale
buy phenytoin no prescription purchase flexeril generic ditropan 5mg sale
buy ozobax no prescription buy lioresal online cheap toradol uk
loratadine generic loratadine 10mg ca brand priligy 60mg
baclofen 10mg sale order toradol pill toradol price
Om du letar efter en snygg dyk replika klockor, överväg Submariner Ref 116613.
amaryl 1mg drug where to buy etoricoxib without a prescription brand arcoxia
order generic fosamax 70mg order alendronate 70mg pills nitrofurantoin 100mg tablet
inderal pills motrin 600mg cheap cheap plavix 150mg
Im grateful for the article. Much obliged.
Thank you for another fantastic post. Where else may anyone get that typeof information in such an ideal method of writing? I’ve a presentation subsequent week, and I’m on the search for such information.
I really liked your post.Thanks Again. Keep writing.
Major thanks for the blog post.Thanks Again. Keep writing.
Muchos Gracias for your blog post.Much thanks again. Fantastic.
Im grateful for the post.Really thank you! Great.
Thanks so much for the article.Thanks Again.
purchase nortriptyline pills purchase paracetamol generic paracetamol
order medex generic purchase coumadin pills order metoclopramide 20mg sale
order orlistat 60mg purchase mesalamine pill buy diltiazem without prescription
I rreally like reading a post that can make men and women think.Also, many thanks for pefmitting me to comment!
You’re so amazing. Oh my Jesus. Jesus bless you.
famotidine 20mg pill order tacrolimus 5mg online prograf 5mg for sale
astelin 10 ml uk acyclovir drug avalide online buy
nexium 20mg usa remeron 30mg oral order topiramate 200mg
order generic zyloprim 100mg rosuvastatin over the counter crestor over the counter
cheap imitrex levofloxacin drug order avodart 0.5mg sale
Thanks so much for the blog post.Much thanks again. Much obliged.
buy buspirone 10mg for sale order buspirone 10mg generic buy cordarone 200mg for sale
zantac ca order zantac 150mg buy cheap celecoxib
Thank you ever so for you blog article.Really looking forward to read more. Awesome.
buy domperidone online order motilium generic purchase sumycin pills
Really enjoyed this post.Much thanks again. Cool.
Really enjoyed this blog.Really thank you! Want more.
order spironolactone 25mg generic buy generic proscar 1mg finpecia us
academia writers pay for essay writing uk pay for essay writing uk
This is one awesome blog post.Really looking forward to read more. Really Cool.
Great, thanks for sharing this blog post.Really thank you! Cool.
Great article. Will read on…
This is one awesome blog. Fantastic.
brand aurogra sildenafil 100mg price order yasmin
I loved your blog. Want more.
Thanks again for the post.Much thanks again. Awesome.
I cannot thank you enough for the blog.Really thank you! Awesome.
I think this is a real great blog. Cool.
flagyl 200mg tablet buy septra generic cephalexin 250mg pills
buy lamictal sale order minipress 1mg pills buy cheap mebendazole
Thank you ever so for you blog post.Thanks Again. Will read on…
I am so grateful for your post.Really thank you! Awesome.
Very neat blog article.Really looking forward to read more. Will read on…
Thanks so much for the blog article.Really looking forward to read more. Great.
cleocin tablet purchase sildenafil online buy ed meds
cheap retin gel purchase retin generic how to buy stendra
Really informative post.Much thanks again. Fantastic.
oral tamoxifen 10mg nolvadex buy online rhinocort order
Thank you for the good writeup. It in truth was a amusement account it.Look complicated to more delivered agreeable from you!By the way, how could we communicate?
I appreciate you sharing this blog article. Really Cool.
Thanks for sharing, this is a fantastic blog article. Want more.
buy ceftin 500mg generic lumigan allergy spray buy methocarbamol 500mg generic
This is highly informatics, crisp and clear. I think that everything has been described in systematic manner. 카지노사이트프로
Say, you got a nice blog article.Much thanks again. Want more.
Thank you ever so for you blog article.Really looking forward to read more. Really Great.
Thanks so much for the post.Really thank you! Keep writing.Loading…
desyrel usa suhagra price clindamycin tubes
buy cheap generic lamisil gambling meaning best casinos
stromectol uk – stromectol ivermectin stromectol xr
aspirin drug slots free casino online blackjack
professional letter writing services complete research paper buy cefixime generic
I really enjoy the post.Much thanks again. Really Cool.
buy a essay online purchase essays online casino gambling
I cannot thank you enough for the post.Really thank you! Awesome.
Wow, great blog article.Much thanks again. Awesome.
Enjoyed every bit of your blog article.Really looking forward to read more. Keep writing.
Im grateful for the post.Thanks Again. Will read on…
A round of applause for your article.Much thanks again. Will read on…
purchase calcitriol without prescription labetalol 100mg ca buy generic fenofibrate online
ivermectin over the counter uk – ivermectin news stromectol coronavirus
ivermectin and collies ivermectin pyrantel for dogs
Hey, thanks for the post.Really thank you! Keep writing.
generic catapres 0.1 mg tiotropium bromide 9 mcg pills spiriva 9 mcg for sale
I hope he doesn�t see me
adult acne medication at ulta trileptal 600mg pill trileptal where to buy
ivermectin use in humans ivermectin for cat ear mites
Thanks-a-mundo for the post. Will read on…Loading…
Hey, thanks for the blog article.Much thanks again. Awesome.
canadian neighborhood pharmacy reviews precision rx specialty pharmacy
Hey there! Do you use Twitter? I’d like to follow you if that would be okay.I’m absolutely enjoying your blog and look forward to newupdates.
I wanted to thank you for this wonderful read!! I absolutely loved every bit of it. I have you book marked to check out new things you post…
I value the article.Thanks Again. Want more.
Great, thanks for sharing this blog post.Much thanks again. Really Great.
buy minocin 100mg generic buy minocin 50mg pill brand requip 1mg
order alfuzosin without prescription order uroxatral 10 mg sale best over the counter heartburn
letrozole 2.5 mg us abilify 20mg brand purchase abilify for sale
buy sleeping tablets online usa see more news about alopecia virtual weight loss clinic
Very usefull information, I like it. I keep follow you. Also, I found best info about Tajikistan Tours
2019 twitter takipçi satın al 2019 takipçi satın al 3 tl 30k takipçi satın al 300 takipçi satın al 3000 takipçi satın al 3 bin takipçi satın al 3 tl takipçi satın al instagram takipçi satın al 4 tl.
new medication for quitting smoking treatments for osteoporsis are dangerous doctor online prescriptions pain medication
medroxyprogesterone 5mg for sale oral praziquantel buy cheap generic hydrochlorothiazide
An intriguing discussion is worth comment. There’s no doubt that that you should write more about this subject, it may not be a taboo matter but generally folks don’t talk about these issues. To the next! Many thanks!!
When I initially commented I clicked the „Notify me when new comments are added” checkbox and now each timea comment is added I get four emails with the samecomment. Is there any way you can removeme from that service? Bless you!
hi!,I like your writing very much! share we communicate more about your article on AOL? I need an expert on this area to solve my problem. May be that’s you! Looking forward to see you.
list of antiviral medication over the counter inhalers walmart drugs to treat prediabete
Great, thanks for sharing this post.Really thank you! Really Great.
buy generic periactin ketoconazole price buy generic nizoral online
I appreciate you sharing this blog.Much thanks again. Want more.
diflucan without a prescription sign up for herpes medication antihypertensive drug equivalent dose
I loved your article post.Really thank you! Great.
where can i buy duloxetine buy provigil 200mg sale brand modafinil 100mg
Awesome article.Thanks Again. Keep writing.
prescription medication to coat stomach ulcer pain worse after eating bacterias that cause uti
It’s really a great and helpful piece of information. I’m satisfied that you shared this useful information with us. Please stay us up to date like this. Thanks for sharing.
buy promethazine online cheap buy promethazine pills for sale stromectol 6mg online
This is one awesome article.Much thanks again. Awesome.
Thanks for sharing, this is a fantastic post.Thanks Again.