Using Class Static Void: System Firstpor (Main (Console - Writeline ("Hello, World ") ) )
Using Class Static Void: System Firstpor (Main (Console - Writeline ("Hello, World ") ) )
.
#$ %&'( ) *
+,
: %&'(
$-$
"
/$ 0& 1 # 2
using System;
class FirstPor
{
static void Main ()
{
Console.WriteLine ("Hello, World ");
}
}
456 57 85" 9 ;
5 ; 456
, C 5 K G5
<+ 0=>
@" ) *
; 46
, C O N&
'
{ Z8J* d8J
, C 4 G H 4IC J ,
B-
TU V M& W X, D+ 8$ 4+ C
- 4+/> B
,]
8Y$ 8Y
C Y 0 1 a! 4 8-$ class
> *c , 4+/> 4I/Y Class
. 4+/\
/ A 8$g 8" S +
f}
45 +* 45+/> 5 4/+!
4R
Rk/ , 4/ 8j 4R &PG @l m Q8 !
:t $
d2 G &PG T$Y
YI+, B Y
, 4 +* p G
I! T$Y
+/ TU
45C T5$Y Z8! M u 8R$, , #*+-j BY( V M= N BI* Z8! , Q i &PG Z@v
5 8/ 4*+y5
, % 5C ,
V 5M= B5*~ #$
System 4I/
using 4/I
8 |> }L=H z*
`M +/
R$> , ;
%28 8
.4&'
k$GM Z8! #$
TU
D-$Y V M& B
)IG , p8J
\ q nm q8v
#" , % n 4+/> x
. BC !
TU , w+` BY(
L M& BI* #Y
. V M= @+' 4
45 , 0|$, A 6$ x W8v 9 M
4PJM 8Y
TU 4/+! B
class
{
Z&*
B i x W8
\ N+c
1m K/J 9
},8J* }!8
CalssName
firstMethod (
{
}
SecondMethod(
{
}
}
9m +/
J, , u
K/J , static
, EF N & 9 4/+!8
5* a5 Console 4+/\
&P!
5M 8
-$Y %& B
, %&
I5!
&[
CP X I
&M M a |H Z&*
&
YI Q 4*+-P , 4/+!8
.... 4I H ?@"
#5
rm 5 8H 85P$
Q 8_+' 4kG
N 8 +n , B (H *
B5-
M , V M= @" -$
n 8 Z& t /
@5 ,8! &Y 4
a/*
8Y
4 ?@"
E 5P>i 5*
-Y
*-5 p 5$ 9
5+/ TU M +n ]
55, , ++
^p
E P>i
5 5
a! &*
%^85_`H AS/Y
/$ Main
; 4j8J H 4/ '
4+/\ a! 8Y 9
%&'
:
, 7amm B[ p
, system
8P!
% n 8 l -$G
&' 4 $
+, * #$ 8 $!
4+ >
E rm *
A@'M b
Q8 ! , ASY/ *
b [ QS$n9 ,
* u
4+C
%&' 4 $ E E + i
46 ]1
/$ System
&P! B #
. 4/+!8
TU ]2
4+/\
- 9
, w+` a! =$*
.a!9 4
9m
: 4+ $ %&'( T$
//
using System;
class SecondPor
{
static void Main ()
{
/* What is the differences between this methods ? */
Console.Write ("Welcome to ");
Console.WriteLine ("C# Programming");
}
}
:t $
Welcome to C# Programming
&n , 06
V 5M=
4-G
w8 8" S
5J+/* T5$Y
>i 8/ T$ W@ p Y T"1
V M= a , x
G , A J+/* 2&L 7m
/I 4J &j , }L=H q % +{ A 2 *
, &PG5 #5 $ )$n E (
Q8 ! , ?? 4 +/_Mm
# ,, $ $ x
' a$ 9
:B ( W
t$
&
?@" * T$Y +` 5 m K G
. * * }
}5 5Y
G'M Q8J$!
#" 9 , 2 R @"
K G V M= T$Y
?@" } 8Rg
Tn 4PJM 0 "
Q8`$ Z8!
+n i V M& W
Z&*
) , n E
P 9
t Y
, a+`{ rm
6y5M 4/I{ # $
8R
Ny Write
&g S W ,
&P! 4
8" &' , 4 8 ! BY
D*y$, WriteLine
8Y+, ,
&P! - Enter
Z8!
. L M&
u
// Third Program
using System;
class ThirdPor
{
static void Main ()
{
Console.WriteLine ("Welcome\nto\nC#\nProgramming");
}
}
, QE G$
#-/ K+I
) # , QE G$ 9
&l B! ! )IG #$
. 4J+J -
^8 & ?@"
#L=
+/ E
* 0 "
G` ($Y
, + &*(
0 ^
&l # G 9 , Sequence
: ^8 & ?@"
&l 4/G/!
Q8 ! ,
w8 t $
8
t $ &PG 4
\n
H N8 +` ,
\t
tab 4+J,i 4
\r
t &PG 4
&P!
{ 4, G 4/I
rm
H %2 m
\\
d -$ 9 4
\"
4 -P p k$G
rm N & +y
$
YI
%28 8
G+ 7i , L M&
1m , B_*$G 9 BI B
System.Windows.Forms 4-$Y
References / w$'
I+ &JM a N &H /L rm D
S System.Windows.Forms.dll |>
& o Z8! a
: 4+ $ % 8R
. OK a Select a
4/+5!8
6$I
85 i
" 4 !&
!! ^
,
1 *
4 !& N & 7m
$ 9 K G 28Y
Show
aY`$
YI$ Z8!
A M8J i BY
m B * T &J
^i 2
aY`$
YI$
. u
: x B 8$ /, 1m ?? *$G
M B"
using System;
class Addition
//
{
static void Main ()
{
! "
string FirstNumber, //
! "
SecondNumber;//
! "
int
x,
//#$%& ! "'
! "
y,
//#$%& ! "'
sum;
//
()
*+ , -.
/01
//
Console.Write ("Please Enter the First Number: ");
FirstNumber = Console.ReadLine();
()
*+ , -.
/01
//
Console.Write ("Please Enter the Second Number: ");
SecondNumber = Console.ReadLine ();
9:
//4%$%& ! . 23 4$5 6 *787 *,9%
x =Int32.Parse (FirstNumber);
y = Int32.Parse (SecondNumber);
4$0 "
9:
// ;<
sum = x + y;
4$0
=
> "
//
Console.WriteLine ("The Sum = {0}",sum);
}
}
. 1X p2 J d
. p k$GH
@l T 8
: 4+ $ Q Y i
*************
***
. J p k$!
I!
YI
... WriteLine