add: printf exercises
This commit is contained in:
@ -8,7 +8,8 @@
|
||||
package main
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: Print Your Age
|
||||
//
|
||||
// Print your age using Prinft
|
||||
//
|
||||
// EXPECTED OUTPUT
|
@ -8,7 +8,8 @@
|
||||
package main
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: Print Your Name and LastName
|
||||
//
|
||||
// Print your name and lastname using Printf
|
||||
//
|
||||
// EXPECTED OUTPUT
|
@ -8,7 +8,8 @@
|
||||
package main
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: False Claims
|
||||
//
|
||||
// Use printf to print the expected output using a variable.
|
||||
//
|
||||
// EXPECTED OUTPUT
|
@ -8,7 +8,8 @@
|
||||
package main
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: Print the Temperature
|
||||
//
|
||||
// Print the current temperature in your area using Printf
|
||||
//
|
||||
// NOTE
|
@ -8,7 +8,8 @@
|
||||
package main
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: Double Quotes
|
||||
//
|
||||
// Print "hello world" with double-quotes using Printf
|
||||
// (As you see here)
|
||||
//
|
@ -8,7 +8,8 @@
|
||||
package main
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: Print the Type
|
||||
//
|
||||
// Print the type and value of 3 using fmt.Printf
|
||||
//
|
||||
// EXPECTED OUTPUT
|
@ -8,7 +8,8 @@
|
||||
package main
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: Print the Type #2
|
||||
//
|
||||
// Print the type and value of 3.14 using fmt.Printf
|
||||
//
|
||||
// EXPECTED OUTPUT
|
@ -8,7 +8,8 @@
|
||||
package main
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: Print the Type #3
|
||||
//
|
||||
// Print the type and value of "hello" using fmt.Printf
|
||||
//
|
||||
// EXPECTED OUTPUT
|
@ -8,7 +8,7 @@
|
||||
package main
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: Print the Type #4
|
||||
// Print the type and value of true using fmt.Printf
|
||||
//
|
||||
// EXPECTED OUTPUT
|
@ -8,7 +8,8 @@
|
||||
package main
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: Print Your Fullname
|
||||
//
|
||||
// 1. Get your name and lastname from the command-line
|
||||
// 2. Print them using Printf
|
||||
//
|
21
07-printf/exercises/README.md
Normal file
21
07-printf/exercises/README.md
Normal file
@ -0,0 +1,21 @@
|
||||
# Printf
|
||||
|
||||
1. **[Print Your Age](https://github.com/inancgumus/learngo/tree/07-printf/exercises/01-print-your-age)**
|
||||
|
||||
2. **[Print Your Name and LastName](https://github.com/inancgumus/learngo/tree/07-printf/exercises/02-print-your-name-and-lastname)**
|
||||
|
||||
3. **[False Claims](https://github.com/inancgumus/learngo/tree/07-printf/exercises/03-false-claims)**
|
||||
|
||||
4. **[Print the Temperature](https://github.com/inancgumus/learngo/tree/07-printf/exercises/04-print-the-temperature)**
|
||||
|
||||
5. **[Double Quotes](https://github.com/inancgumus/learngo/tree/07-printf/exercises/05-double-quotes)**
|
||||
|
||||
6. **[Print the Type](https://github.com/inancgumus/learngo/tree/07-printf/exercises/06-print-the-type)**
|
||||
|
||||
7. **[Print the Type #2](https://github.com/inancgumus/learngo/tree/07-printf/exercises/07-print-the-type-2)**
|
||||
|
||||
8. **[Print the Type #3](https://github.com/inancgumus/learngo/tree/07-printf/exercises/08-print-the-type-3)**
|
||||
|
||||
9. **[Print the Type #4](https://github.com/inancgumus/learngo/tree/07-printf/exercises/09-print-the-type-4)**
|
||||
|
||||
10. **[Print Your Fullname](https://github.com/inancgumus/learngo/tree/07-printf/exercises/10-print-your-fullname)**
|
Reference in New Issue
Block a user