Arşiv

Arşiv ‘For’ Kategorisi

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DongulerFor6 { class Program { static void Main(string[] args) { for (int i = 1; i < 10; i++) { for (int k = 1; k < 10; k++) { // \t tab etkisi yarat Console.Write(“{0}x{1}={2}\t”,i,k,i*k); } Console.WriteLine(); } Console.ReadKey(); } } }

90 defa okundu | Henüz yorum yok.
Ağu 12th, 2010 | Filed under For

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DongulerFor5 { class Program { static void Main(string[] args) { int altSinir, ustSinir; Console.Write(“Alt : “); altSinir = Convert.ToInt32(Console.ReadLine()); Console.Write(“Ust : “); ustSinir = Convert.ToInt32(Console.ReadLine()); int sayac = 0;//çift sayı adedi 0 dan başlıyor for (int i = ++altSinir; i < ustSinir; i++) { if (i [...]

74 defa okundu | Henüz yorum yok.
Ağu 12th, 2010 | Filed under For
Etiketler: , ,

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DongulerFor4 { class Program { static void Main(string[] args) { //bool yazildiMi = false; //for (int i = 59; yazildiMi==false; i–) //{ // if (i % 3 == 0) // { // Console.Write(i); // yazildiMi = true; // } //} //bool yazildiMi = false; //for (int [...]

73 defa okundu | Henüz yorum yok.
Ağu 12th, 2010 | Filed under For

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DongulerFor3 { class Program { //kullanıcı alt sınırı ğst sınırdan küçük girene kadar kullanıcıdan alt ve üst sınır değerleri istenecek. Eğer alt sınır üst sınırdan küçük değer girilirse aralarındaki sayılar ekrana yazdırılacak static void Main(string[] args) { int altSinir, ustSinir; Console.Write(“Alt Sinir : “); altSinir = [...]

80 defa okundu | Henüz yorum yok.
Ağu 12th, 2010 | Filed under For
Etiketler: , ,

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DongulerFor2 { class Program { static void Main(string[] args) { for (int i = 4; i > 0; i–) { Console.WriteLine(i); } Console.WriteLine(“ateş!!!”); Console.ReadKey(); } } }

93 defa okundu | Henüz yorum yok.
Ağu 12th, 2010 | Filed under For
Etiketler: , ,