| 
									
										
										
										
											2018-10-13 23:30:21 +03:00
										 |  |  | // 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 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // --------------------------------------------------------- | 
					
						
							| 
									
										
										
										
											2018-10-22 22:00:34 +03:00
										 |  |  | // EXERCISE: Wrong doer | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | //  1. Print a variable | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | //  2. Then declare it | 
					
						
							| 
									
										
										
										
											2018-10-13 23:30:21 +03:00
										 |  |  | //  (This means: Try to print it before its declaration) | 
					
						
							| 
									
										
										
										
											2018-10-22 22:00:34 +03:00
										 |  |  | // | 
					
						
							|  |  |  | //  3. Observe the error | 
					
						
							| 
									
										
										
										
											2018-10-13 23:30:21 +03:00
										 |  |  | // --------------------------------------------------------- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func main() { | 
					
						
							|  |  |  | 	// First print it: | 
					
						
							|  |  |  | 	// fmt.Println(?) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	// Then declare it: | 
					
						
							|  |  |  | 	// var ? ? | 
					
						
							|  |  |  | } |