Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Review Csharp

2,213 views

Published on

^__^

Published in: Education
  • Be the first to comment

  • Be the first to like this

Review Csharp

  1. 1. lmmtimtgg @@[p>3y for (dlllIl©c'§Iftfl@lIiJ [by lNlc'E)lI'lLl]©lm‘iJ©Ili] Sooimltlhioimgi
  2. 2. LE3 Hellouwo-r| d.Prougran1 1 Elusing System; 2 using 5}rstenII. C-olleiztions. fienerii: ; using 5}rstenII. Linq; using 5-]i'5tE'I'lII. TE'}Il‘II_; I El n arles pa i: e Hell-olill-orld | 1 El class Program { El static void I-'lainI[string| [] args} { Console . lillriteLine["I-lello Holrd ! " )1; Console. lllea-: :ll{ejyr[};
  3. 3. $3 Rectang| eArea. Program 1 Busing System; using Systen. Co11ections. Generic; using Systen. Linq; _using Systen. Text; 6I[]nanespace RectangleArea { B class Program { 8 static void Main(string[] args) { int width = 5, length = 10; int Rectang1eArea = width * length; Console. HriteLine(“Rectang1e Area= {0}", Rectang1eArea); Conso1e. ReadKey();
  4. 4. ,_f, i$ M u ltip I e. P reg ram 1 ’1using System; 2 using System. Co11ections.6eneric; 3 using System. Linq; 4 using System. Text; S E Enamespace Multiple 7 { 8 : ' class P~cg~ar 9 i { LB 5 static void Main(string[] args) :1 { 12 Ccnscle. write("Input nunber : "); L3 14 int mul = int. Parse(Ccnsule. ReadLine()); 15 C«: .nscle. writeLine(); U3. L? for (int i = 1; i <= 12; i++) 18 { 19 Ccnsple. writeLine(" " + mul + " x " + i + " = " + mul * i); 29 } 21 Ccnscle. ReadLine(); 22 } } 24 _}
  5. 5. _$$Age. Program 1 Elusing System; 2 using Systen. Col1ections. Generic; using Systen. Linq; _using Systen. Text; Enallespace Age { 3 class Program { E] static void Main(string[] args) { int x =0; Conso1e. Hrite("Enter Your of Birth (B. E.) : "); x = int. Parse(Conso1e. ReadLine()); if (x <= 2558) { } Conso1e. ReadLine(); Conso1e. write("Your age is" + (2558 - x)), '

×