| 
									
										
										
										
											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: Declare with bits | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | //  1. Declare a few variables using the following types | 
					
						
							| 
									
										
										
										
											2018-10-13 23:30:21 +03:00
										 |  |  | //    int | 
					
						
							|  |  |  | //    int8 | 
					
						
							|  |  |  | //    int16 | 
					
						
							|  |  |  | //    int32 | 
					
						
							|  |  |  | //    int64 | 
					
						
							|  |  |  | //    float32 | 
					
						
							|  |  |  | //    float64 | 
					
						
							|  |  |  | //    complex64 | 
					
						
							|  |  |  | //    complex128 | 
					
						
							|  |  |  | //    bool | 
					
						
							|  |  |  | //    string | 
					
						
							|  |  |  | //    rune | 
					
						
							|  |  |  | //    byte | 
					
						
							|  |  |  | // | 
					
						
							| 
									
										
										
										
											2018-10-22 22:00:34 +03:00
										 |  |  | // 2. Observe their output | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // 3. After you've done, check out the solution | 
					
						
							| 
									
										
										
										
											2018-10-13 23:30:21 +03:00
										 |  |  | //    and read the comments there | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // EXPECTED OUTPUT | 
					
						
							|  |  |  | //  0 0 0 0 0 0 0 false 0 0 | 
					
						
							|  |  |  | //  "" | 
					
						
							|  |  |  | // --------------------------------------------------------- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func main() { | 
					
						
							|  |  |  | 	// var i int | 
					
						
							|  |  |  | 	// var i8 int8 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	// CONTINUE FROM HERE.... | 
					
						
							|  |  |  | } |