21 runnable programs
Example programs in Hinglish code
Real, complete AltFLang programs — from Namaste Duniya to bubble sort. Each page explains the code line by line, shows the output it produces, and lets you edit and run it in your browser.
Showing 21 of 21 programs
Basics
Conditions
Loops & Patterns
Functions
Lists & Objects
Strings
Math
- Beginner24 linesPrime Number CheckerFunction with boolean return value, break statement, and logic.
- Beginner15 linesBuilt-in Math with ganitUsing ganit object methods and type conversion helpers.
- Beginner24 linesSimple CalculatorOne function, four operations, and a guard against dividing by zero.
- Intermediate23 linesPrime Numbers from 1 to 50Find every prime up to 50 with a helper function and jodo.
- Beginner17 linesTemperature ConverterConvert between Celsius and Fahrenheit with two small functions.
- Beginner22 linesSimple and Compound InterestCompare simple interest with compound growth using ganit.pow.
Fun
- Beginner20 linesDesi Joke GeneratorHilarious developer memes, jokes, and funny emoji output generator.
- Beginner24 linesChai Budget CalculatorCalculates how many cutting chais you can afford before salary day.
- Beginner31 linesCricket Commentary SimulatorSimulates ball-by-ball IPL style commentary with emojis and sixes.