Bu örneğimizde kullanıcının girdiği sayının 3’ün katı olup olmadığını bulacağız.
namespace _27.UcunKatı
{
class Program
{
static void Main(string[] args)
{
Console.Write("Bir sayi giriniz: ");
int sayi = Convert.ToInt32(Console.ReadLine());
if (sayi % 3 == 0)
{
Console.WriteLine("Girilen sayi 3'ün katıdır.");
}
else
{
Console.WriteLine("Girilen sayi 3'ün katı degildir.");
}
Console.ReadLine();
}
}
}
Kullanıcıdan “sayi” adında bir değişken aldıktan sonra mod alma işlemini yaparak bu sayının 3’ün katı olup olmadığını buluyoruz.
“%” ifadesi bölümünden kalanı verir. Yani girilen sayının 3’e bölümünden kalan 0 ise o sayı 3’e tam bölünür ve 3’ün tam katıdır.
Konunun detaylı anlatımı için C Dili Operatörler sayfasını inceleyebilirsiniz. (C dilinde ki operatörlerin kullanımıyla aynı şekilde olduğu için C Dili Operatörleri inceleyebilirsiniz.)
Kodun ekran çıktısı da aşağıdaki şekildedir:

45 Yorum
wow, awesome blog post. Really Great.
fenofibrate pill fenofibrate uk buy fenofibrate sale
tadalafil 20mg us buy viagra 100mg brand viagra 100mg
ketotifen 1 mg ca order sinequan 25mg online order imipramine sale
order minoxidil online buy ed pills paypal best pill for ed
acarbose 50mg us buy generic precose over the counter buy fulvicin 250 mg online
buy aspirin online buy lquin pill buy imiquimod
They can get more such compact discs they will captured at home for me to give attention to for in
dipyridamole sale gemfibrozil over the counter pravachol 10mg pills
buy melatonin 3 mg generic buy generic meloset danazol without prescription
I value the blog article.Really thank you! Really Cool.
Really informative blog.Really looking forward to read more. Want more.
Muchos Gracias for your article.Thanks Again. Really Great.
Say, you got a nice blog.Really thank you!
order duphaston 10 mg online buy januvia medication generic jardiance 10mg
fludrocortisone 100mcg uk buy dulcolax paypal purchase loperamide online
oral monograph 600mg etodolac drug pletal 100 mg price
buy prasugrel pill prasugrel uk detrol 1mg tablet
ferrous sulfate 100 mg over the counter order actonel 35 mg generic sotalol tablet
buy pyridostigmine 60mg for sale cheap piroxicam maxalt oral
buy cheap generic enalapril casodex 50mg cost buy generic lactulose for sale
buy zovirax paypal buy zovirax generic buy rivastigmine 3mg generic
buy cheap generic betahistine latanoprost cheap probenecid oral
generic premarin 0.625mg buy cheap generic dostinex sildenafil online
order omeprazole 10mg buy omeprazole pills for sale brand metoprolol
Really enjoyed this article.Really thank you! Much obliged.
buy micardis 20mg online telmisartan 80mg sale molnupiravir us
wow, awesome blog.Thanks Again. Want more.
I value the blog article.Much thanks again. Want more.
buy tadalafil 20mg pills cialis for daily use buy viagra for sale
cenforce for sale online naprosyn pills chloroquine 250mg uk
wow, awesome blog article.Thanks Again. Fantastic.
Wow, great post.Much thanks again. Will read on…
buy modafinil 200mg generic order deltasone 20mg buy generic deltasone 5mg
I am so grateful for your post.Really thank you! Really Great.
buy generic cefdinir for sale purchase glucophage sale lansoprazole price
order isotretinoin 10mg pills amoxil brand order zithromax 250mg for sale
Muchos Gracias for your post.Really looking forward to read more. Keep writing.
Fantastic article.Thanks Again. Cool.
atorvastatin 10mg generic buy generic amlodipine for sale norvasc 10mg for sale
I really liked your blog post.Really thank you! Really Great.
oral azipro cheap azipro buy gabapentin 600mg online cheap
Major thanks for the blog article.Really looking forward to read more. Keep writing.
free spins no deposit required order lasix 100mg pills order generic furosemide
purchase pantoprazole order protonix 20mg sale phenazopyridine 200mg pills