Beruflich Dokumente
Kultur Dokumente
C sharp
..
Section 3
'-V'- ,-- -'-,-
namespace
{
class
{
static void Main(string[] args)
{
int year, month, day;
year = 17;
month = 6;
day = 25;
int sum = year * 365 + month * 30 + day;
Console.Write(sum);
}
}
}
.
/t ==- -- --- -'~- -=V -=-~-
~--- '- >---
Hi welcome c#
namespace
{
class
{
static void Main(string[] args)
{
Console.Write("hi\twelcome\tc#");
}
}
}
..
-=-~- -'--- -- ,=~ ,-- '-
namespace
{
class
{
static void Main(string[] args)
{
Console.WriteLine("welcome");
}
}
}
........................................
;- Q--- -=-~-- Q- '-'-- >-~V
int x = int.Parse(Console.ReadLine());
.
;~ Q--- -=-~-- Q- '-'-- >-~V
string x =Console.ReadLine();
string ,- - ,-- .----- ReadLine ' ==`-
String ,--' .,,=- -=, int ,- - ,-- .----- -,- ' '-
int.Parse(Console.ReadLine());
icl if L.o icl _ ,s _Il.I _.I _Ic ... .,>
if (5 > 6)
Console.WriteLine("that'sline");
if ifcondition+ statement
if +
{}
Ex.
if (5 > 6)
{
Console.WriteLine("that'sline");
Console.WriteLine("yes");
}