8000 GitHub - tyroruyk/banglacode: Bangla Implementation of C Programming Language
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tyroruyk/banglacode

Repository files navigation

বাংলাকোড

বাংলাকোড is a programming language that uses Bangla syntax. It's designed to make programming more accessible and easier to learn for Bangla speakers.

Features

  • Bangla syntax
  • Mimics C syntax and structure

Getting Started

To start using বাংলাকোড, follow these steps:

  1. Write your code in Bangla using the specified syntax.
  2. Use the online interpreter to run your code.

Syntax

Basic Structure

A basic বাংলাকোড program starts with the #অন্তর্ভুক্ত <স্তদিও.হ> directive (similar to C's #include <stdio.h>) and the পূর্ণ প্রধান() function (similar to C's int main()).

Variables

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";

Functions

Use predefined functions for basic operations:

  • যোগ(ক, খ): Addition (like a + b)
  • বিয়োগ(ক, খ): Subtraction (like a - b)
  • গুণ(ক, খ): Multiplication (like a * b)
  • ভাগ(ক, গ): Division (like a / c)
  • বর্গমূল(ক): Square root (like sqrt(a))

Output

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);

Example Code

#অন্তর্ভুক্ত <স্তদিও.>

পূর্ণ প্রধান() {
    সুতা নাম = "বাংলা কোড";
    ছাপাওফ("স্বাগতম ");
    ছাপাওফ(নাম);
    ছাপাওফ("!\\n");
    ছাপাওফ("গণনা শুরু!\\n");
    পূর্ণ  = ১০;
    পূর্ণ  = ৫;
    দশমিক  = ৩.৫;
    পূর্ণ  = যোগ(, );
    ছাপাওফ("যোগ: ");
    ছাপাওফ();
    ছাপাওফ("\\n");
    পূর্ণ  = বিয়োগ(, );
    ছাপাওফ("বিয়োগ: ");
    ছাপাওফ();
    ছাপাওফ("\\n");
    দশমিক  = গুণ(, );
    ছাপাওফ("গুণ: ");
    ছাপাওফ();
    ছাপাওফ("\\n");
    দশমিক  = ভাগ(, );
    ছাপাওফ("ভাগ: ");
    ছাপাওফ();
    ছাপাওফ("\\n");
    দশমিক  = বর্গমূল();
    ছাপাওফ("বর্গমূল: ");
    ছাপাওফ();
    ছাপাওফ("\\n");
    ফেরত ০;
}

Contributing

Feel free to contribute to বাংলাকোড by submitting issues and pull requests.

About

Bangla Implementation of C Programming Language

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  
0