Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
float to short cast overflow
Strings Mix
Get year quarter from date
nn
Метод catch b try в словарях
ADCSXAA
Fórum regex only alphanumerics (except underscore)
checkvalidtraingle
Lesson 1.2 Part I
Main5.2
Please log in to post a comment.