Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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.
Test
iLoveLizzy
4. Inheritance
Evaluating a Mathematical expression in a string in C#
CommandForce2
matching parenthesis
Square Real Matrix
Swap 2
ggggg
Homework1
Please log in to post a comment.