This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Date of creation : 10/12/2016. | |
Aim of program : To use Fields() to split the string into a list words. | |
Coded by : Rishikesh Agrawani. | |
*/ | |
package main | |
import ( | |
"fmt" | |
"strings" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Date of creation : 10/12/2016. | |
Aim of program : To display a table from 1 to 10. | |
Coded by : Rishikesh Agrawani. | |
*/ | |
package main | |
import "fmt" | |
func main() { | |
//In Go i++ is a statement not an expression like in C, so we can't use it in any expression or function call argument |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Date of creation : 10/12/2016. | |
Aim of program : To display primes(between 1-100) in tabular form. | |
Coded by : Rishikesh Agrawani. | |
*/ | |
package main | |
import "fmt" | |
func main() { | |
//We know 1 is not prime but here our intention is tabluar form so that is why I am executing for from 1 to onwards. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
{ | |
"created_at" : "Sat Dec 10 07:27:03 IST 2016", | |
"aim_of_program" : "Using increment & decrement operators(and their alternatives)" | |
"coded_by" : "Rishikesh Agrawani" | |
} | |
*/ | |
package main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
{ | |
"cretaed_after" : "Sat Dec 10 12:01:49 IST 2016" | |
"aim_of_program" : "To create a new directory in current working directory (On Unix based system)" | |
"coded_by" : "Rishikesh Agrawani" | |
} | |
*/ | |
package main | |
import "os" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
{ | |
"cretaed_after" : "Sat Dec 10 12:01:49 IST 2016" | |
"aim_of_program" : "To create a new directory in current working directory(On MAC/UNIX/Windows)" | |
"coded_by" : "Rishikesh Agrawani" | |
} | |
*/ | |
package main | |
import ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
{ | |
"created_after" : "Sat Dec 10 07:27:03 IST 2016", | |
"focus_of_program" : "Structure and its usage in 3 diffferent ways" | |
"coded_by" : "Rishikesh Agrawani" | |
} | |
*/ | |
package main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
{ "Date of creation" => "Sat Dec 10 20:28:10 IST 2016" } | |
{ "Aim of program" => "To create a singly linked list and traversing through it after inserting nodes at front" } | |
{ "Coded by" => "Rishikesh Agrawani" } | |
{ "Go version" => "1.7" } | |
*/ | |
package main | |
import "fmt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
{ "Date of creation" => "Sat Dec 10 23:08:10 IST 2016" } | |
{ "Aim of program" => "To create a singly linked list and traversing through it after inserting nodes at end" } | |
{ "Coded by" => "Rishikesh Agrawani" } | |
{ "Go version" => "1.7" } | |
*/ | |
package main | |
import "fmt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
{ | |
"cretaed_after" : "Sat Dec 10 23:14:26 IST 2016" | |
"aim_of_program" : "To print X symbol using * characters" | |
"coded_by" : "Rishikesh Agrawani" | |
} | |
*/ | |
package main | |
import "fmt" |