| 
									
										
										
										
											2018-10-13 23:30:21 +03:00
										 |  |  | // Copyright © 2018 Inanc Gumus | 
					
						
							|  |  |  | // Learn Go Programming Course | 
					
						
							|  |  |  | // License: https://creativecommons.org/licenses/by-nc-sa/4.0/ | 
					
						
							|  |  |  | // | 
					
						
							| 
									
										
										
										
											2019-10-30 19:34:44 +03:00
										 |  |  | // For more tutorials  : https://learngoprogramming.com | 
					
						
							|  |  |  | // In-person training  : https://www.linkedin.com/in/inancgumus/ | 
					
						
							|  |  |  | // Follow me on twitter: https://twitter.com/inancgumus | 
					
						
							| 
									
										
										
										
											2018-10-13 23:30:21 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | package main | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // --------------------------------------------------------- | 
					
						
							| 
									
										
										
										
											2018-10-22 22:20:09 +03:00
										 |  |  | // EXERCISE: Redeclare | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // 	1. Short declare two int variables: age and yourAge | 
					
						
							| 
									
										
										
										
											2018-10-13 23:30:21 +03:00
										 |  |  | //     (use multiple short declaration syntax) | 
					
						
							|  |  |  | // | 
					
						
							| 
									
										
										
										
											2018-10-22 22:20:09 +03:00
										 |  |  | //  2. Short declare a new float variable: ratio | 
					
						
							| 
									
										
										
										
											2018-10-13 23:30:21 +03:00
										 |  |  | //     And, change the 'age' variable to 42 | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | //     (! You should use redeclaration) | 
					
						
							|  |  |  | // | 
					
						
							| 
									
										
										
										
											2018-10-22 22:20:09 +03:00
										 |  |  | //  4. Print all the variables | 
					
						
							| 
									
										
										
										
											2018-10-13 23:30:21 +03:00
										 |  |  | // | 
					
						
							|  |  |  | // EXPECTED OUTPUT | 
					
						
							|  |  |  | //  42, 20, 3.14 | 
					
						
							|  |  |  | // --------------------------------------------------------- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func main() { | 
					
						
							|  |  |  | 	// ADD YOUR DECLARATIONS HERE | 
					
						
							|  |  |  | 	// | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	// THEN UNCOMMENT THE CODE BELOW | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	// fmt.Println(age, yourAge, ratio) | 
					
						
							|  |  |  | } |