Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace SoftUniiii
- {
- class Program
- {
- static void Main(string[] args)
- {
- Student st1 = new Student("Sergei");
- Student st2 = new Student("Vladimir Putin");
- Student st3 = new Student("Boiko Borisov");
- Student st4 = new Student("Joseph Stalin");
- Console.WriteLine(Student.money);
- st1.AddMoney(2.5m);
- st2.AddMoney(10.5m);
- try
- {
- st3.GetMoney(50.0m);
- }
- catch(Exception)
- {
- Console.WriteLine("Try again...");
- }
- st4.AddMoney(100m);
- Student.Info();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement