Created
December 11, 2024 10:56
-
-
Save skikozou/22d7a89de185823b85a1fdbe8f40ac15 to your computer and use it in GitHub Desktop.
Country-specific solutions to problems
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"strings" | |
) | |
func main() { | |
fmt.Println("Country-specific solutions to problems") | |
fmt.Println("Some problems -> ?") | |
problems := "Some problems" | |
fmt.Println("\nAmerica") | |
fmt.Println(America(problems)) | |
fmt.Println("\nChina") | |
fmt.Println(China(problems)) | |
fmt.Println("\nKorea") | |
fmt.Println(Korea(problems)) | |
fmt.Println("\nJapan") | |
fmt.Println(Japan(problems)) | |
} | |
func America(problems string) string { | |
bomb := "solution" //power is power | |
problems = bomb | |
return problems | |
} | |
func China(problems string) string { | |
problems = strings.ReplaceAll(problems, "Some problems", "arrest") //delete cause parson | |
return problems | |
} | |
func Korea(problems string) string { | |
demo := "solution" //demonstration | |
problems = demo | |
return problems | |
} | |
func Japan(problems string) string { | |
meeting := "" //empty meeting | |
problems += meeting | |
return problems | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment