Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //: Playground - noun: a place where people can play
- import UIKit
- enum Sestercje: Int
- {
- case aureus
- case denar
- case sesterc
- case dupondius
- case asy
- case semis
- }
- var liczba :Int = 0
- var x :Int = 0
- var waluta = Sestercje.sesterc
- switch waluta
- {
- case .aureus:
- liczba += x*100
- case .denar:
- liczba += x*4
- case .sesterc:
- liczba += x/2
- case .dupondius:
- liczba += x/4
- case .asy:
- liczba += x/6
- case .semis:
- liczba += x/8
- }
- var sakiewka:[(value: Int, name:String)] = [(1,"aureus"),(1,"denar"),(1,"sesterc"),(1,"dupondius"),(1,"asy"),(1,"semis")]
- func przelicz (sakiewka:[Int])
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement