using %s and %d



package main
import "fmt"

func main() {
  my_name := "JimS"
  my_age := 34 
  my_height := 74
  my_weight := 180 
  my_eyes := "brown"
  my_hair := "black"

  fmt.Printf("My name is %s.\n", my_name)
  fmt.Printf("I'm about %d inches tall.\n", my_height)
  fmt.Printf("I used to be %d pounds heavy.\n", my_weight)
  fmt.Printf("I have %s eyes and %s hair.\n", my_eyes, my_hair)
  fmt.Printf("adding these %d, %d, %d equals %d\n", 
    my_age, my_height,my_weight, my_age + my_height + my_weight)
}

8 comments:

  1. I’m planning to start my blog soon, but I’m a little lost on everything. Would you suggest starting with a free platform like Word Press or go for a paid option? There are so many choices out there that I’m completely confused. Any suggestions? Thanks a lot.
    Best AWS Training in Marathahalli | AWS Training in Marathahalli
    Amazon Web Services Training in Anna Nagar, Chennai |Best AWS Training in Anna Nagar, Chennai

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete

  3. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging.

    angularjs-Training in velachery

    angularjs-Training in annanagar

    angularjs Training in chennai

    angularjs Training in chennai

    ReplyDelete
  4. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
    python training in pune | python training institute in chennai | python training in Bangalore

    ReplyDelete
  5. This is most informative and also this post most user friendly and super navigation to all posts... Thank you so much for giving this information to me.. 
    advanced excel training in bangalore

    ReplyDelete
  6. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.

    blueprism training in chennai | blueprism training in bangalore | blueprism training in pune | blueprism online training

    ReplyDelete
  7. I'm here representing the visitors and readers of your own website say many thanks for many remarkable

    Java training in Marathahalli | Java training in Btm layout

    Java training in Jaya nagar | Java training in Electronic city

    ReplyDelete
  8. Nice post. Thanks for sharing the valuable information. it’s really helpful. Who want to learn this blog most helpful. Keep sharing on updated posts…

    Data Science training in Chennai | Data science training in bangalore

    Data science training in pune | Data science online training

    Data Science Interview questions and answers


    ReplyDelete