C# - C Sharp: Practical 1


Khóa học qua video:
Lập trình Python All Lập trình C# All SQL Server All Lập trình C All Java PHP HTML5-CSS3-JavaScript
Đăng ký Hội viên
Tất cả các video dành cho hội viên

Exercise 1: Working with System.Console.WriteLine and System.Console.ReadLine method:

Design a program that ask user to enter name and age. After that display the welcome message to the screen.

Exercise 2: Working with System.Console.WriteLine and System.Console.ReadLine method and goto keyword

Design a program that ask user to enter name and age. If the age less than 20, ask user reenter the age.  After that display the welcome message to the screen.

Exercise 3: Working with loop construct: for, while, do.. while

Design a program that accept an integer number n and display result: n! with solutions:

· Use for statement

· Use while statement

· Use do..while statement

· Extra solution: use recursion

Exercise 4: Working with loop construct

Use loop construct or goto keyword to design a menu:

Exercise 5:

· Ask user to enter the number of football teams: n =

· Ask user to enter the name of each team

 Team 1: x

 Team 2: y

 Team 3: z

 …

· Create a random fixture for the League of n football teams (2 x (n-1) rounds).

» Tiếp: Practical 2: Products Management System
« Trước: PRN232-PT1
Khóa học qua video:
Lập trình Python All Lập trình C# All SQL Server All Lập trình C All Java PHP HTML5-CSS3-JavaScript
Đăng ký Hội viên
Tất cả các video dành cho hội viên
Copied !!!