Declare varibales and print the output
bhai_sun x = 5;
bhai_sun naam = "Ankush";
bhai_sun jhanda = sach;
bhai_sun jhanda2 = jhuth;
bol_bhai(x)
bol_bhai(naam)
bol_bhai(jhanda)
bol_bhai(jhanda2)
Perform basic arithmetic operations
bhai_sun x = 4;
x = x / 2;
bol_bhai(x);
x = 10;
x = x * 2;
bol_bhai(x);
x = x % 2;
bol_bhai(x);
Use conditional statements
bhai_sun x = 10;
agar(x % 2 == 1) {
bol_bhai("Even");
} nahi_to_agar(x == 10) {
bol_bhai("Number is 10");
} nahi_to {
bol_bhai("Odd");
}
Use while loop with 'jaha_tak' keyword
bhai_sun i = 1;
jaha_tak(i < 10){
bol_bhai(i * 2);
i = i + 1;
}
Use for loop with 'shuru_kar' keyword
shuru_kar(bhai_sun i = 0; i < 10; i = i + 1) {
bol_bhai(i);
}
chal_bhai(bhai_sun i = 10; i > 0; i = i - 1) {
bol_bhai(i);
}
You can try nested while and for loops
bhai_sun x = 10;
chal_bhai (bhai_sun i = 0; i < x; i = i + 1) {
chal_bhai (bhai_sun j = 0; j < x; j = j + 1) {
bol_bhai(i);
bol_bhai(j);
}
}
Use break and continue statements
chal_bhai(bhai_sun i = 0; i < 10; i = i + 1) {
agar(i == 5) {
aage_bhad_bhai;
} nahi_to_agar(i == 7) {
bas_kar_bhai;
}
bol_bhai(i);
}
Implement 1d, 2d and upto n-d arrays
bhai_sun arr = [1, 2, 3, 4, 5];
bhai_sun arr2 = [[1, 2], [3, 4], [5, 6]];
bol_bhai(arr);
bol_bhai(arr[1]);
shuru_kar(bhai_sun i = 0; i < 5; i = i + 1) {
bol_bhai(arr[i]);
bol_bhai(arr2[i]);
}