বাংলাকোড is a programming language that uses Bangla syntax. It's designed to make programming more accessible and easier to learn for Bangla speakers.
- Bangla syntax
- Mimics C syntax and structure
To start using বাংলাকোড, follow these steps:
- Write your code in Bangla using the specified syntax.
- Use the online interpreter to run your code.
A basic বাংলাকোড program starts with the #অন্তর্ভুক্ত <স্তদিও.হ>
directive (similar to C's #include <stdio.h>
) and the পূর্ণ প্রধান()
function (similar to C's int main()
).
Declare variables using পূর্ণ
for integers (like int
), দশমিক
for floating-point numbers (like float
), and সুতা
for strings (like char*
).
Example:
পূর্ণ ক = ১০; // int a = 10;
দশমিক খ = ৩.৫; // float b = 3.5;
সুতা নাম = "বাংলা কোড"; // char* name = "Bangla Code";
Use predefined functions for basic operations:
যোগ(ক, খ)
: Addition (likea + b
)বিয়োগ(ক, খ)
: Subtraction (likea - b
)গুণ(ক, খ)
: Multiplication (likea * b
)ভাগ(ক, গ)
: Division (likea / c
)বর্গমূল(ক)
: Square root (likesqrt(a)
)
Use the ছাপাওফ()
function to display output (similar to C's printf()
). You can print strings or variables.
Example:
ছাপাওফ("গণনা শুরু!\\n"); // printf("Calculation started!\\n");
ছাপাওফ(ক); // printf(a);
#অন্তর্ভুক্ত <স্তদিও.হ>
পূর্ণ প্রধান() {
সুতা নাম = "বাংলা কোড";
ছাপাওফ("স্বাগতম ");
ছাপাওফ(নাম);
ছাপাওফ("!\\n");
ছাপাওফ("গণনা শুরু!\\n");
পূর্ণ ক = ১০;
পূর্ণ খ = ৫;
দশমিক গ = ৩.৫;
পূর্ণ ঘ = যোগ(ক, খ);
ছাপাওফ("যোগ: ");
ছাপাওফ(ঘ);
ছাপাওফ("\\n");
পূর্ণ ঙ = বিয়োগ(ক, খ);
ছাপাওফ("বিয়োগ: ");
ছাপাওফ(ঙ);
ছাপাওফ("\\n");
দশমিক চ = গুণ(গ, খ);
ছাপাওফ("গুণ: ");
ছাপাওফ(চ);
ছাপাওফ("\\n");
দশমিক ছ = ভাগ(ক, গ);
ছাপাওফ("ভাগ: ");
ছাপাওফ(ছ);
ছাপাওফ("\\n");
দশমিক জ = বর্গমূল(ক);
ছাপাওফ("বর্গমূল: ");
ছাপাওফ(জ);
ছাপাওফ("\\n");
ফেরত
6B98
span> ০;
}
Feel free to contribute to বাংলাকোড by submitting issues and pull requests.