Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var i:Int
- var texto:String
- var num:Int=0
- var frase:String=””
- for i in 1...3
- { num = num+1+i*2
- switch num{
- case 2...6: texto = “a “
- case 7...9: texto = “casa “
- case 10...13: texto = “carro “
- case 14...16: texto = “eh “
- case 17...20: texto = “o “
- case 21...23: texto = “forte “
- default:
- texto = “não eh “ }
- frase = frase+texto }
- print (frase)
Add Comment
Please, Sign In to add comment