assigment operator haqida malumot

#include <iostream>
using namespace std ;
int main() {

int a = 10;
string ism = “davron”;

cout << a << endl;
cout << ism << endl;

a=20;
ism = “quvonchbek”;
cout << a << endl;
cout << i…


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by thequvonc


#include <iostream>
using namespace std ;
int main() {

int a = 10;
  string ism = "davron";

  cout << a << endl;
  cout << ism << endl; 

  a=20;
  ism = "quvonchbek";
  cout << a << endl;
  cout << ism;

  return 0;
  }

biz bugun assigment opperator haqida ilk malumot egalladik!

bunda birinchi navbatta int a da a ni yani biron bir sonni oqib olishimiz zarur!

int a = 10;
  string ism = "davron";

va biron bir soz kiritishimiz kerak

biz int a da yozgan sonimiz va xarifimiz masalan aniq son boladigan bolsa (10) buni biz osha qismda bir martta ishlatsak boladi

keyingi qatorda biz bu int a dagi sonimizni boshqa bir son ishtirokida amalga oshirishimioz mumkin

int a = 10;
  string ism = "davron";
  cout << a << endl;
  cout << ism << endl; 

  a=20;
  ism = "quvonchbek";
  cout << a << endl;
  cout << ism;

bu yerdagi yozgan cod imizni console dagi javobi

10
davron
20
quvonchbek

boladi!

albatta oxirida doimgidek

  return 0;
  }

tugatish funksiyasini yozib qoyamiz!

@dawroun


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by thequvonc


Print Share Comment Cite Upload Translate Updates
APA

thequvonc | Sciencx (2022-12-23T13:27:15+00:00) assigment operator haqida malumot. Retrieved from https://www.scien.cx/2022/12/23/assigment-operator-haqida-malumot/

MLA
" » assigment operator haqida malumot." thequvonc | Sciencx - Friday December 23, 2022, https://www.scien.cx/2022/12/23/assigment-operator-haqida-malumot/
HARVARD
thequvonc | Sciencx Friday December 23, 2022 » assigment operator haqida malumot., viewed ,<https://www.scien.cx/2022/12/23/assigment-operator-haqida-malumot/>
VANCOUVER
thequvonc | Sciencx - » assigment operator haqida malumot. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/12/23/assigment-operator-haqida-malumot/
CHICAGO
" » assigment operator haqida malumot." thequvonc | Sciencx - Accessed . https://www.scien.cx/2022/12/23/assigment-operator-haqida-malumot/
IEEE
" » assigment operator haqida malumot." thequvonc | Sciencx [Online]. Available: https://www.scien.cx/2022/12/23/assigment-operator-haqida-malumot/. [Accessed: ]
rf:citation
» assigment operator haqida malumot | thequvonc | Sciencx | https://www.scien.cx/2022/12/23/assigment-operator-haqida-malumot/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.