জয়েন লগইন

সি++ while লুপ

🌈সি++ while লুপ কি?

📋সি++ while লুপ হলো শর্ত সত্য থাকা পর্যন্ত পুনরাবৃত্তি করার পদ্ধতি।

⚒️সি++ while লুপ শর্ত সত্য থাকা পর্যন্ত পুনরাবৃত্তি করতে ব্যবহৃত হয়।

সি++ while লুপ শর্ত সত্য থাকা পর্যন্ত পুনরাবৃত্তি করার উদাহরণ।

cpp
#include <iostream>
#include <vector>
#include <string>
using namespace std;

int main() {

  int number = 1;

  while (number <= 10) {
    cout << "নাম্বার: " << number << endl;
    number++;
  }

  return 0;
}