Skip to main content

How to write programs in Bhai language

Bhai Language

Bhai language is fun Programming language , with this language you can makes jokes in hindi. Bhai language written in typescript. It's very funny , easy and amazing language. Keywords of this language written in Hindi .

bhai language program

Starting and ending of the program

Start program with keyword " hi bhai " and end with "bye bhai". It's compulsory to add this keyword before starting and end on the program. You write your programming logic inside this hi bhai and bye bhai.

How to declare variables in Bhai language

We use " bhai ye hai variable_name" keyword for declaring variables. In javascript we use var keyword for declaring variables but here you have to use "bhai ye hai " keyword. If you are declaring string then use " " double quotes. You can use Boolean variable like sahi and galat for true and false.

How to print output in Bhai language

You have to use " bol bhai" keyword for printing output. In javascript we use console. log (" " ); but here you just use bol bhai "hello helo" ; .

If statement else statement in bol bhai lang.

Rest of the programming languages uses if and else keywords for conditional code. In Bhai language we have to use "agar bhai" for if condition and for else we use "warna bhai".

Loops in Bhai language.

You have seen in most popular languages we use while loop, do while loop and for loop but in Bhai language you have to use " jab tak bhai" . Thats awesome. You can break and continue loop using keywords like "bas kar bhai" and "agla dekh bhai".

Here the some amazing programs using Bhai lang.

bhai lang
bhai lang
bhai lang program

Try your first bhai program in this online editor

Open Bhai language Editor

Comments