SHARE
TWEET

Untitled

Sonder221098 Jan 17th, 2020 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package main
  2.  
  3. import (
  4.     . "fmt"
  5.     "os"
  6. "unicode"
  7. )
  8.  
  9. func main() {
  10. parole := os.Args[1:]
  11. var Pparola[] rune
  12. for i :=0 ; i<len(parole) ; i++{
  13. for _, ch := range parole[i] {
  14. Pparola = append(Pparola,ch)
  15. if i%2 == 0 {
  16. for j:=0 ; j<len(Pparola) ; j++{
  17. if j%2== 0{
  18. Unicode.ToUpper(Pparola[j])
  19. Print(Pparola[j])
  20. }else{
  21. Unicode.ToLower(Pparola[j])
  22. Print(Pparola[j])
  23. }
  24. }
  25.  
  26. }
  27. if i%2 != 0 {
  28. for k:=0 ; k<len(Pparola) ; k++{
  29. if k%2== 0{
  30. Unicode.ToLower(Pparola[k])
  31. Print(Pparola[k])
  32. }else{
  33. Unicode.ToUpper(Pparola[k])
  34. Print(Pparola[k])
  35. }
  36. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top