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 Join EADS. A global leader in aerospace, defence and related services. Let your imagination take shape. EADS unites a leading aircraft manufacturer, the world’s largest helicopter supplier, a global leader in space programmes and a worldwide leader in global security solutions and systems to form Europe’s largest defence and aerospace group. More than 140,000 people work at Airbus, Astrium, Cassidian and Eurocopter, in 90 locations globally, to deliver some of the industry’s most exciting projects. An EADS internship offers the chance to use your theoretical knowledge and apply it first-hand to real situations and assignments during your studies. Given a high level of responsibility, plenty of learning and development opportunities, and all the support you need, you will tackle interesting challenges on state-of-the-art products. We take more than 5,000 interns every year across disciplines ranging from engineering, IT, procurement and finance, to strategy, customer support, marketing and sales. Positions are available in France, Germany, Spain and the UK. To find out more and apply, visit www.jobs.eads.com. You can also find out more on our EADS Careers Facebook page. Download free eBooks at bookboon.com 5 ... - tailieumienphi.vn
nguon tai.lieu . vn