that_one_nigga_you_k

Untitled

Mar 22nd, 2023
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.39 KB | None | 0 0
  1. var i:Int
  2. var texto:String
  3. var num:Int=0
  4. var frase:String=””
  5. for i in 1...3
  6. { num = num+1+i*2
  7.  switch num{
  8.  case 2...6: texto = “a “
  9.  case 7...9: texto = “casa “
  10.  case 10...13: texto = “carro “
  11.  case 14...16: texto = “eh “
  12.  case 17...20: texto = “o “
  13.  case 21...23: texto = “forte “
  14.  default:
  15.  texto = “não eh “ }
  16. frase = frase+texto }
  17. print (frase)
  18.  
Add Comment
Please, Sign In to add comment