C#

İLK BƏSİT PROGRAM
{
Console.WriteLine("Hello World ");
Console.ReadLine();
}
İlk bəsit program
---------------------------------------------------------------
FOR OPERATORU
{
int a , b , c , d ;
for ( a = 0 ; a < 10 ; a++ )
{
Console.WriteLine("c = " + c);
c = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("d = " + d);
d = Convert.ToInt32(Console.ReadLine());
b=c+d;
Console.WriteLine("b = "+b);
}
Console.ReadLine();
}
 For operatoru 1
For operatoru 2
---------------------------------------------------------------
İF OPERATORU
{
int a,b;
a = Convert.Toint32(Console.ReadLine());
b = Convert.Toint32(Console.ReadLine());
if (a<b)
Console.WriteLine("Salam Dadash ");
else
Console.WriteLine("Salam Aliyev ");
Console.ReadLine();
}
if sert
---------------------------------------------------------------
LABEL - dan TEXTBOX - a göndərmək
{
 textBox1.Text = label1.Text;
}
label dan textbox a gondermek
---------------------------------------------------------------
TEXTBOX -dan LABEL - a göndərmək
{
label1.Text = textBox1.Text;
}
textbox dan label a gondermek
--------------------------------------------------------------

Комментарии

Популярные сообщения из этого блога

C# da double vasitəsi ilə dairənin sahəsinin tapılması