Xem mẫu

Poul Klausen C# 1 Introduction to programming and the C# language Download free ebooks at bookboon.com 2 C# 1 Introduction to programming and the C# language © 2012 Poul Klausen & bookboon.com (Ventus Publishing ApS) ISBN 978-87-403-0250-9 Download free ebooks at bookboon.com 3 C# 1 Introduction to programming and the C# language Contents Contents Foreword 11 Part 1 Introduction to C# 13 1 Introduction 14 Hello World 14 2 Basic program architecture 18 Print a book 18 3 Variables 21 The sum of two numbers 23 Operators 24 4 Console programs 27 Perimeter and area of a circle 27 Product calculation 29 Date and time 30 Arguments on the command line 32 The next step for top-performing graduates Masters in Management Designed for high-achieving graduates across all disciplines, London Business School’s Masters in Management provides specific and tangible foundations for a successful career in business. This 12-month, full-time programme is a business qualification with impact. In 2010, our MiM employment rate was 95% within 3 months of graduation*; the majority of graduates choosing to work in consulting or financial services. As well as a renowned qualification from a world-class business school, you also gain access to the School’s network of more than 34,000 global alumni – a community that offers support and opportunities throughout your career. For more information visit www.london.edu/mm, email mim@london.edu or give us a call on +44 (0)20 7000 7573. * Figures taken from London Business School’s Masters in Management 2010 employment report Download free ebooks at bookboon.com 4 C# 1 Introduction to programming and the C# language Contents 5 Program control 34 if 34 Sort two numbers 35 if-else 38 A quadratic equation 39 while 42 The sum of the positive number less than 100 43 for 45 Sum of positive integers 46 do 47 switch 47 Weekday 48 The cross-sum 50 The biggest and the smallest number 52 6 Strings 55 The class string 56 Palindrome 58 Teach with the Best. Learn with the Best. Agilent offers a wide variety of affordable, industry-leading electronic test equipment as well as knowledge-rich, on-line resources —for professors and students. We have 100’s of comprehensive web-based teaching tools, lab experiments, application notes, brochures, DVDs/ CDs, posters, and more. © Agilent Technologies, Inc. 2012 See what Agilent can do for you. www.agilent.com/find/EDUstudents www.agilent.com/find/EDUeducators u.s. 1-800-829-4444 canada: 1-877-894-4414 Download free ebooks at bookboon.com 5 ... - tailieumienphi.vn
nguon tai.lieu . vn