add: numbers and strings exercises

This commit is contained in:
Inanc Gumus
2018-10-27 17:15:23 +03:00
parent c37cf60701
commit 9646e16137
36 changed files with 75 additions and 22 deletions

View File

@@ -10,7 +10,8 @@ package main
import "fmt"
// ---------------------------------------------------------
// EXERCISE
// EXERCISE: Windows Path
//
// 1. Change the following program
// 2. It should use a raw string literal instead
//

View File

@@ -10,7 +10,8 @@ package main
import "fmt"
// ---------------------------------------------------------
// EXERCISE
// EXERCISE: Print JSON
//
// 1. Change the following program
// 2. It should use a raw string literal instead
//

View File

@@ -10,7 +10,8 @@ package main
import "fmt"
// ---------------------------------------------------------
// EXERCISE
// EXERCISE: Raw Concat
//
// 1. Initialize the name variable
// by getting input from the command line
//

View File

@@ -13,7 +13,8 @@ import (
)
// ---------------------------------------------------------
// EXERCISE
// EXERCISE: Count the Chars
//
// 1. Change the following program to work with unicode
// characters.
//

View File

@@ -14,7 +14,8 @@ import (
)
// ---------------------------------------------------------
// EXERCISE
// EXERCISE: Improved Banger
//
// Change the Banger program the work with Unicode
// characters.
//

View File

@@ -8,12 +8,17 @@
package main
// ---------------------------------------------------------
// EXERCISE
// EXERCISE: ToLowercase
//
// 1. Look at the documentation of strings package
// 2. Find a function that changes the letters into lowercase
// 3. Get a value from the command-line
// 4. Print the given value in lowercase letters
//
// HINT
// Check out the strings package from Go online documentation.
// You will find the lowercase function there.
//
// INPUT
// "SHEPARD"
//

View File

@@ -12,7 +12,8 @@ import (
)
// ---------------------------------------------------------
// EXERCISE
// EXERCISE: Trim It
//
// 1. Look at the documentation of strings package
// 2. Find a function that trims the spaces from
// the given string

View File

@@ -12,7 +12,8 @@ import (
)
// ---------------------------------------------------------
// EXERCISE
// EXERCISE: Right Trim It
//
// 1. Look at the documentation of strings package
// 2. Find a function that trims the spaces from
// only the right-most part of the given string