c++ da cin buyrug'i haqida qisqacha malumot

yasina2005

Yasina2005

Posted on March 7, 2023

c++ da cin buyrug'i haqida qisqacha malumot

Biz sizlar bilan bugun c++ da cin buyrug'ini ko'rib chiqamiz dastlab //int bu qisqartma shakli bu esa integer qisqarmagan shakli biz bundan butun sonlarni saqlashda foydalanamiz.Endi esa biz o'rganadigan //string biz bunda tekstlarni saqlashimiz mumkin.Bunga misol tariqasida bularni ko'rishimiz mumkin.

#include <iostream>
using namespace std;

int main(){

int n;
cin >> n;
cout<<n<<n<<n<<n<<n<<n<<endl;
cout<<n<<"    "<<n<<endl;
cout<<n<<"    "<<n<<endl;
cout<<n<<n<<n<<n<<n<<n<<endl;
return 0;
}
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
yasina2005
Yasina2005

Posted on March 7, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related