Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Modulul 3, Exerciţiul 2 – Crearea şi utilizarea unui tip struct
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public enum AccountType {Cec,Deposit}; public struct BankAccount { public long accNumber ; public int interestRate; public AccountType accType ; } public class Program { public static void Main(string[] args) { BankAccount account; account.accNumber = 123; account.interestRate = 3200; account.accType = AccountType.Cec; //Your code goes here Console.WriteLine("Hello, account values are: \n accNumber : {0} \n interestRate : {1} \n accType : {2}",account.accNumber,account.interestRate,account.accType); } } }
run
|
edit
|
history
|
help
0
Sri 19 Sept
Collection_ basic datastructure brushup
SMS filter config Captures and Groups
Knapsack Problem
Testing
Min Max Sum Avg
Enum Extension
Command design pattern
Builder Design Pattern
adxasxsd