NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

/* Soru1: 3 den 33 e kadar olan sayılar yan yana aralarına boşluk bırakarak yazdıran program*/
/*
for (int i = 3; i <= 33; i++)
{
Console.Write(i + " ");
}
Console.ReadKey();*/

//Soru2:klavyeden girilen ismi 3 kez ekranda yan yana yazdıran program

/* Console.Write("bir isim giriniz: ");
string isim = Console.ReadLine();
for (int i = 1; i <= 3; i++)
{
Console.Write(isim+ " ");
}
Console.ReadKey();*/
//while ile
/*Console.Write("bir isim giriniz: ");
string isim = Console.ReadLine();
int i = 1;
while(i<=3)
{
Console.Write(isim + " ");
i++;
}
Console.ReadKey();*/
//do-while ile
/*
Console.Write("bir isim giriniz: ");
string isim = Console.ReadLine();
int i = 1;
do
{
Console.Write(isim + " ");
i++;
}
while (i <= 3);
Console.ReadKey();*/
//Soru3:1 den 5 e kadar olan sayıların çarpımını bulan program(5 faktöriyel)
/*
int carpim = 1;
for (int i = 1; i <= 5; i++)
{
carpim = carpim * i;
}
Console.WriteLine(carpim);
Console.ReadKey();*/
/*
//soru4:1 den 10 a kadar olan sayıların karelerini ve küplerini yazdıran program
int kup = 1;
int kare = 1;
for (int i = 1; i <= 10; i++)
{
kare = i * i;
kup = i * i * i;
Console.WriteLine("sayi = {0} karesi = {1} kubu = {2} >", i, kare, kup);
}
Console.ReadKey();*/

/* 0 dan 20 ye kadar olan çift sayıları ekrana yazdırınız
int i = 0;
while (i<=20)
{
Console.WriteLine(i);
i = i + 2;

}
Console.ReadKey();
*/
/*
int i =;
while (i<3)//ekrana alt alta 0 1 2 yazar
{
Console.WriteLine(i);
i++;
}
*/
//sonsuz döngü
/*
while (1>0)
{
Console.WriteLine("istanbul");

}
*/
/*
while (1 == 1)
{
Console.WriteLine("istanbul");

}
*/
/*
while (1 < 0)
{
Console.WriteLine("istanbul");

}*/
/*
//1 3 5 7 9 11 13 15 17 19
int i = 1;
while (i < 20)
{
Console.Write(i + " ");
i = i + 2;
}
Console.ReadKey();*/
//soru 3
//for ile
/* int carpim = 1;

for (int i = 1 ; i <= 5; i++)
{
carpim = carpim * i;//carpim*=i;

}
Console.WriteLine("5 farktöriyel = {0}", carpim);
Console.ReadKey();*/

//while ile
/*int i = 1, carpim = 1;
while (i <= 5)
{
carpim = carpim * i; //veya carpim *=i;
i++;
}
Console.WriteLine("5 faktöriyel={0}", carpim);
Console.ReadKey();*/

//do while ile
/* int i = 1, carpim = 1;
do
{
carpim *= i;
i++;
}
while (i <= 5);
Console.WriteLine("5 faktöriyel={0}", carpim);
Console.ReadKey();*/
//soru4:1 den 10 a kadar olan sayıların karelerini ve küplerini yazdıran program
/*int kup = 1;
int kare = 1;
for (int i = 1; i <= 10; i++)
{
kare = i * i;
kup = i * i * i;
Console.WriteLine("sayı = {0} karesi = {1} küpü = {2} >", i, kare, kup);
}
Console.ReadKey();*/
//while ile
/*int kup = 1;
int kare = 1;
while (i<=10)
{
kare = i * i;
kup = i * i * i;
Console.WriteLine("sayı = {0} karesi = {1} küpü = {2} >", i, kare, kup);
i++;
}
Console.ReadKey();*/
//do while
/*int kare, kup, i = 1;
do
{
kare = i * i;
kup = i * i * i;
Console.WriteLine("sayı = {0} karesi = {1} küpü = {2} >", i, kare, kup);
i++;
}while (i<=10);
Console.ReadKey();*/

//Soru5:klavyeden girilen ismi klavyeden girilen sayı kadar yazdıran program
//for ile
/*Console.Write("isim giriniz: ");
string ad = Console.ReadLine();
Console.Write("kaç kez yazılsın: ");
int sayi = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("-----------------------------");
for (int i = 1; i <= sayi; i++)
{
Console.WriteLine(ad);

}
Console.ReadKey();
*/
//while ile
/*Console.Write("isim giriniz: ");
string ad = Console.ReadLine();
Console.Write("kaç kez yazılsın: ");
int sayi = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("-----------------------------");
int i = 1;
while (i <= sayi)
{
Console.WriteLine(ad);
i++;
}
Console.ReadKey();*/

//do while
/*Console.Write("isim giriniz: ");
string ad = Console.ReadLine();
Console.Write("kaç kez yazılsın: ");
int sayi = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("-----------------------------");
int i = 1;
do
{
Console.WriteLine(ad);
i++;
} while (i <= sayi);
Console.ReadKey();*/

//soru6: kalvyeden girilen sayıdan 0 a kadar olan sayıarın alt alta yazdıran prog
//for ile
/* Console.Write("sayi giriniz: ");
int sayi = Convert.ToInt16(Console.ReadLine());
for (int i = sayi; i >=0; i--)
{
Console.WriteLine(i);

}
Console.ReadKey();
*/

//while ile
Console.Write("sayı giriniz: ");
int sayi = Convert.ToInt16(Console.ReadLine());
int i = sayi;
while(i>=0)
{
Console.WriteLine(i);
i--;
}
Console.ReadKey();





//ödev
/*soru1 : klavyeden sıfır girilene kadar sayı girişi alan ve bu sayıları toplayan ve sonucu gösteren program */
/*int sayi, toplam=0;
while (true)
{
Console.Write("Sayı Giriniz: ");
sayi = Convert.ToInt32(Console.ReadLine());
if(sayi==0)
{

}
toplam += sayi;
}
Console.WriteLine("Girdiğiniz Sayıların Toplamı: "+toplam);
Console.ReadKey();*/

/*soru 2 klavyeden sıfır girilene kadar sayı girişi alan ve bu sayıları toplayan ve ortalamasını hesaplayan ve ekranda gösteren program*/
     
 
what is notes.io
 

Notes.io is a web-based application for 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 12 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

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.