Code karo bhai with GG Code
The fun Hindi slang programming language. Write code in your style - "bhai", "agar", "jab tak" and more!
Created by Aditya Karmalkar
GG Code Examples
Explore different features of GG Code - the fun Hindi slang programming language
Variables & Basics
Learn the fundamentals of ggcode with Hindi slang syntax for variables and output.
kya bolte public
bhai ye hai naam = "Amit"
bhai ye hai age = 21
bol bhai naam
bol bhai age
bye publicConditionals
Make decisions in your code using "agar" (if) and "warna" (else) statements.
kya bolte public
bhai ye hai marks = 45
agar bhai marks >= 40
bol bhai "Pass hogaya re bhai!"
warna bhai
bol bhai "Phir se try karna padega!"
bye publicLoops
Repeat code execution using "jab tak" (while) loops in true ggcode style.
kya bolte public
bhai ye hai i = 1
jab tak bhai i <= 5
bol bhai i
i++
bye publicFunctions
Create reusable code blocks with functions and end them with "khallas function".
kya bolte public
bhai function add(a, b)
bol bhai a + b
khallas function
bol bhai add(10, 20)
bye publicAdvanced Logic
Master nested conditions with age-based logic and fun emoji outputs.
kya bolte public
bhai ye hai age = 18
agar bhai age >= 21
bol bhai "Daaru allowed 🍻"
warna bhai agar age >= 18
bol bhai "Sirf voting allowed 🗳️"
warna bhai
bol bhai "Abhi baccha hai tu!"
bye publicHello World
Start your ggcode journey with the classic "Hello World" program in Hindi slang.
kya bolte public
bol bhai "Hello Public!"
bye publicSwear Filter
ggcode automatically filters inappropriate language and replaces it with friendly messages.
kya bolte public
bol bhai "Madarchod!"
bye public
// Output: (gali kaiko dera bhai)For Loop Style
Use custom slang-style for loops with "bhai chalu" for more complex iterations.
kya bolte public
bhai chalu i = 0; jab tak i < 3; i++
bol bhai "Scene " + i
bye publicAlternative Syntax
ggcode offers multiple ways to write the same code - use traditional syntax or cool Hindi slang expressions.
kya bolte public
// Traditional way:
bhai ye hai a = 20
bhai ye hai b = 30
bhai ye hai c = a + b
// Cool slang way:
a bolle toh 20
b bolle toh 30
c bolle toh a aur b dono
bol bhai c
bye public