27 lines
		
	
	
		
			550 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			550 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // For more tutorials: https://blog.learngoprogramming.com
 | |
| //
 | |
| // Copyright © 2018 Inanc Gumus
 | |
| // Learn Go Programming Course
 | |
| // License: https://creativecommons.org/licenses/by-nc-sa/4.0/
 | |
| //
 | |
| 
 | |
| package main
 | |
| 
 | |
| // ---------------------------------------------------------
 | |
| // EXERCISE: Swapper #2
 | |
| //
 | |
| //  1. Swap the values of `red` and `blue` variables
 | |
| //
 | |
| //  2. Print them
 | |
| //
 | |
| // EXPECTED OUTPUT
 | |
| //  blue red
 | |
| // ---------------------------------------------------------
 | |
| 
 | |
| func main() {
 | |
| 	// UNCOMMENT THE CODE BELOW:
 | |
| 
 | |
| 	// red, blue := "red", "blue"
 | |
| 	// ?
 | |
| }
 |