online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Online Go Lang Compiler. Code, Compile, Run and Debug Go Lang program online. Write your code in this editor and press "Run" button to execute it. *******************************************************************************/ package main import ( "fmt" ) func main(){ /* Le Menu de la carte du RESTAUREANT YENO */ a := "Banane viande" b := "Poisson au four" c := "Riz viande" d := "Salade sans feuille" e := "Queue de boeuf" /* Le prix des repas du Menu de la carte du RESTAUREANT YENO */ aa := "prix: 2000" bb := "prix: 3500" cc := "prix: 2700" dd := "prix: 2500" ee := "prix: 4500" /* Echange avec le Server du RESTAUREANT YENO */ l := "\n" f := " Vous avez choisie =>" g := " Ce que vous avez choisie n'existe pas dans la carte" h := "fcfa" var x int fmt.Println("") fmt.Println("") fmt.Println("$******************************************************$") fmt.Println("") fmt.Println("$*********** BIENVENUE AU RESTAUREANT YENO ***********$") fmt.Println("") fmt.Println("$******************************************************$") fmt.Println("") fmt.Println(" Que souhaitez-vous commander ?") fmt.Println("") println(" [1]", a, l,"[2]", b, l,"[3]", c, l,"[4]", d, l,"[5]", e, l) fmt.Scan(&x) fmt.Println("") switch x { case 1: fmt.Println(f, a,",", aa, h) case 2: fmt.Println(f, b,",", bb, h) case 3: fmt.Println(f, c,",", cc, h) case 4: fmt.Println(f, d,",", dd, h) case 5: fmt.Println(f, e,",", ee, h) default: fmt.Println(g) } fmt.Println("") if x < 1 || x > 5 { fmt.Println(" Veuillez réessayer s'il vous plait !") fmt.Println("") println(" [1]", a, l,"[2]", b, l,"[3]", c, l,"[4]", d, l,"[5]", e, l) var m int fmt.Scan(&m) fmt.Println("") switch m { case 1: fmt.Println(f, a,",", aa, h) case 2: fmt.Println(f, b,",", bb, h) case 3: fmt.Println(f, c,",", cc, h) case 4: fmt.Println(f, d,",", dd, h) case 5: fmt.Println(f, e,",", ee, h) default: fmt.Println(g) } fmt.Println("") fmt.Println(" Confirmez vous l'achat de ce plat ?") fmt.Println("") println(" [0] NON", a, l,"[1] OUI", b, l) var ttt int fmt.Println("") fmt.Scan(&ttt) if ttt == 1 { fmt.Println("") fmt.Println("") fmt.Println("Le RESTAUREANT YENO Jordane vous souhaite un très bon appetit !") fmt.Println("") }else{ fmt.Println("") fmt.Println("") fmt.Println("Au revoir") } } if x == 1 || x == 2 || x == 3 || x == 4 || x == 5 { fmt.Println(" Confirmez vous l'achat de ce plat ?") fmt.Println("") println(" [0] NON", a, l,"[1] OUI", b, l) var t int fmt.Println("") fmt.Scan(&t) if t == 1 { fmt.Println("") fmt.Println("") fmt.Println("Le RESTAUREANT YENO Jordane vous souhaite un très bon appetit !") fmt.Println("") }else{ fmt.Println("") fmt.Println("") fmt.Println(" Veuillez réessayer s'il vous plait !") fmt.Println("") println(" [1]", a, l,"[2]", b, l,"[3]", c, l,"[4]", d, l,"[5]", e, l) var o int fmt.Scan(&o) fmt.Println("") fmt.Println("") switch o { case 1: fmt.Println(f, a,",", aa, h) case 2: fmt.Println(f, b,",", bb, h) case 3: fmt.Println(f, c,",", cc, h) case 4: fmt.Println(f, d,",", dd, h) case 5: fmt.Println(f, e,",", ee, h) default: fmt.Println(g) } fmt.Println("") fmt.Println(" Confirmez vous l'achat de ce plat ?") fmt.Println("") println(" [0] NON", a, l,"[1] OUI", b, l) var tt int fmt.Println("") fmt.Scan(&tt) if tt == 1 { fmt.Println("") fmt.Println("") fmt.Println("Le RESTAUREANT YENO Jordane vous souhaite un très bon appetit !") fmt.Println("") }else{ fmt.Println("") fmt.Println("") fmt.Println("Au revoir") } } } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue