Initial commit
This commit is contained in:
		
							
								
								
									
										27
									
								
								07-printf/exercises/02/main.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								07-printf/exercises/02/main.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,27 @@
 | 
			
		||||
// 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
 | 
			
		||||
//  Print your name and lastname using Printf
 | 
			
		||||
//
 | 
			
		||||
// EXPECTED OUTPUT
 | 
			
		||||
//  My name is Inanc and my lastname is Gumus.
 | 
			
		||||
//
 | 
			
		||||
// BONUS
 | 
			
		||||
//  Store the formatting specifier (first argument of Printf)
 | 
			
		||||
//    in a variable.
 | 
			
		||||
//  Then pass it to printf
 | 
			
		||||
// ---------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
func main() {
 | 
			
		||||
	// BONUS: Use a variable for the format specifier
 | 
			
		||||
 | 
			
		||||
	// fmt.Printf("?", ?, ?)
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user