Notes
![]() ![]() Notes - notes.io |
int sayi=0;
while(sayi<100)
{
sayi++;
if(sayi%5==0 || sayi%6==0)
{
Console.WriteLine(sayi);
}
}
Console.ReadLine();
*/
/* 1-100 ARASINDA TEKLERİ AYRI TOPLAYACAK ÇİFTLERİ AYRI TOPLAYACAK//
int sayi = 0,cift=0,tek=0;
while(sayi<100)
{
sayi++;
if (sayi % 2 == 0)
{
cift = cift + sayi;
}
else
{
tek = tek + sayi;
}
}
Console.WriteLine("ÇİFT SAYILARIN TOPLAMI " +cift);
Console.WriteLine("TEK SAYILARIN TOPLAMI : " + tek);
Console.ReadLine();
*/
/*
Console.WriteLine("[1] = Tarih ve saati yazdır");
Console.WriteLine("[2] = Tarih ve saati kırmızı yazdır ");
Console.WriteLine("[3] = arka planı beyaz tarih ve saati siyah yazdır");
Console.WriteLine("[4] = kaçıncı ayda olduğunu yazdır");
Console.WriteLine("[5] = sadece saati yazdır");
Console.WriteLine("[6] = Tarihi yazdır");
Console.WriteLine("[7] = dakikayı yazdır");
Console.WriteLine("[8] = yılı yazdır");
Console.WriteLine("[9] = ayın kaçında olduğunu yazdır");
Console.WriteLine("[10] = bugünün hangi gün olduğunu yazdır");
Console.WriteLine("[11] = çıkış");
DateTime tarih = DateTime.Now.Date;
string durum = "";
while (durum != "11")
{
Console.Write("Bir seçim yapınız ", "[1]", "[2]", "[3]", "[4]", "[5]", "[6]", "[7]", "[8]", "[9]", "[10]", "[11]");
durum = Console.ReadLine();
switch (durum)
{
case "1" : Console.WriteLine(tarih.ToString("dddd, dd MMMM yyyy HH:mm"));break;
case "2":Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine(tarih.ToString("dddd, dd MMMM yyyy HH:mm")); break;
case "3":Console.BackgroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.Black;
Console.WriteLine(tarih.ToString("dddd, dd MMMM yyyy HH:mm")); break;
case "4" : Console.WriteLine(tarih.ToString(" MMMM")); break;
case "5" : Console.WriteLine(tarih.ToString(" HH:mm")); break;
case "6": Console.WriteLine(tarih.ToString(" dddd, dd MMMM yyyy")); break;
case "7": Console.WriteLine(tarih.ToString("mm ")); break;
case "8" : Console.WriteLine(tarih.ToString(" yyyy")); break;
case "9": Console.WriteLine(tarih.ToString(" dd")); break;
case "10": Console.WriteLine(tarih.ToString(" dddd")); break;
case "11": break;
default:Console.Write("hata!");break;
}
}
Console.ReadLine();
*/
/* for (int i = 1; i <= 10; i++)
{
for (int j = 1; j <= 10; j++)
{
Console.WriteLine("{0} * {1} = {2} ", i, j, i * j);
}
Console.WriteLine("------------------------");
Console.ReadLine();
*/
//çarpım tablosu while ile //
/*
int i = 1, j = 1;
while (i <= 10)
{
while (j <= 10)
{
Console.WriteLine("{0} * {1} = {2}", i, j, i * j);
j++;
}
i++;
j = 1;
}
Console.ReadLine();
*/
/*
int i=0, j=0;
Console.Write("kısa kenar giriniz : ");
int kisa = Convert.ToInt16(Console.ReadLine());
Console.Write("uzun kenar giriniz : ");
int uzun = Convert.ToInt16(Console.ReadLine());
while (i<=uzun)
{
while (j <= kisa)
{
if (i == 0 || i == kisa || j == 0 || j == uzun)
{
Console.Write("+");
}
else
{
Console.Write(" ");
}
j++;
}
i++;
j = 0;
Console.WriteLine();
}
Console.ReadLine();
*/
int x =1 , y = 1;
while(x<=6)
{
while(y<=5)
{
if(x==1|| x==3 || x==5 || (y==1 && x==2) || (y==5 && x==4) || x==6 && y==3 )
{
Console.Write("*");
}
else
{
Console.Write(" ");
}
y++;
}
x++;
y = 1;
Console.WriteLine();
}
Console.ReadLine();
}
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team