GG Code
GG Code v0.1 — Hindi slang programming

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.

Variable Declaration with "bhai ye hai"
Output with "bol bhai"
Program Structure
basics.gg
kya bolte public
bhai ye hai naam = "Amit"
bhai ye hai age = 21
bol bhai naam
bol bhai age
bye public

Conditionals

Make decisions in your code using "agar" (if) and "warna" (else) statements.

If statements with "agar"
Else statements with "warna"
Comparison Operators
conditionals.gg
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 public

Loops

Repeat code execution using "jab tak" (while) loops in true ggcode style.

While loops with "jab tak"
Loop Conditions
Counter Increment
loops.gg
kya bolte public
bhai ye hai i = 1
jab tak bhai i <= 5
  bol bhai i
  i++
bye public

Functions

Create reusable code blocks with functions and end them with "khallas function".

Function Declaration
Parameters & Arguments
Function Calls
functions.gg
kya bolte public
bhai function add(a, b)
  bol bhai a + b
khallas function

bol bhai add(10, 20)
bye public

Advanced Logic

Master nested conditions with age-based logic and fun emoji outputs.

Nested If-Else Statements
Multiple Conditions
Fun Emoji Outputs 🍻🗳️
advanced.gg
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 public

Hello World

Start your ggcode journey with the classic "Hello World" program in Hindi slang.

Simple Program Structure
Basic Output Command
Perfect for Beginners
hello.gg
kya bolte public
bol bhai "Hello Public!"
bye public

Swear Filter

ggcode automatically filters inappropriate language and replaces it with friendly messages.

Automatic Profanity Detection
Friendly Replacement Messages
Educational & Fun
filter.gg
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.

For Loop with "bhai chalu"
Initialization & Increment
String Concatenation
forloop.gg
kya bolte public
bhai chalu i = 0; jab tak i < 3; i++
  bol bhai "Scene " + i
bye public

Alternative Syntax

ggcode offers multiple ways to write the same code - use traditional syntax or cool Hindi slang expressions.

Traditional "bhai ye hai" syntax
Cool "bolle toh" slang expressions
Natural Hindi words like "aur" and "dono"
alternative.gg
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