Giter VIP home page Giter VIP logo

bangla-code's Introduction

বাংলা কোড Programming Language Documentation

Variable Declaration and Printing

ধরি নাম = "রিয়াসাত";
ধরি বয়স = 21;
লিখি(নাম + "এর বয়স " + বয়স);

## Conditional Statements

যদি (নাম == "রিয়াসাত") {
লিখি("হ্যালো রিয়াসাত");
} নাহলে যদি (নাম == "তারিক") {
লিখি("হ্যালো তারিক");
} নাহলে {
লিখি("তোমার নাম মিলছে না");
}

## loops

ধরি ন = 1;
অব্দি(ন < 100) {
লিখি(ন);
ন = ন + 1;
}

// আরেক রকমের লুপ
লুপ(ধরি ন = 0 ; ন < 100; ন++){
লিখি (ন)
}


## Arrays and Objects
// Array বা বিন্যাস 
ধরি খেলা = ["ফুটবল", "ক্রিকেট", "টেনিস"];

// Object বা বস্তু 
ধরি রিয়াসাত = {নাম: "রিয়াসাত", বয়স: 21};

## Functions and Classes

কাজ যোগ(অ, ব) {
ফল (অ + ব)
}

ধরি ফ = যোগ(5, 10);
লিখি ( ফ )

## বস্তু তৈরি করার কাজ

কাজ মানুষ(নাম, বয়স, বাসস্থান) {
 ফল { নাম, বয়স, বাসস্থান }
}

ধরি জিশান = মানুষ("জিশান", 22, "কলকাতা");

লিখি (জিশান)

## বলো কাজ

বলো ('How are you');

//শুধু ইংলিশ ভাষা বলতে পারবে 😒;

কাজ হ্যালো(){
ধরি নাম = ইনপুট ('তোমার নাম লেখো ')
বলো ('Hello '+ নাম )
}

হ্যালো ()

## Number guessing game
// তোমাকে রান্ডম নম্বর গেস করতে হবে 0 - 100;
ধরি র = রান্ডম(100 );
ধরি ন = ইনপুট ('নম্বর টা গেস করো ');


কাজ চেক (){
যদি ( ন  == র ){
   লিখি ('তুমি ঠিক ধরেছ, সংখ টা ছিল  ' + ন )
   বলো ('You are right, the random number is ' + ন )
}নাহলে যদি (ন   > র ){
  ন = ইনপুট('তুমি একটা বড় সংখ ধরেছ ');
  চেক ()
} নাহলে যদি (ন  < র ){
 ন = ইনপুট ('তুমি একটা ছোট সংখ ধরেছ ')
 চেক ()
  }
}

চেক()

bangla-code's People

Contributors

riasatsk avatar

Stargazers

Andrew Johnson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.