assigment operator haqida;

Tenglik belgisi = bu belgi replitda int,stringfloatvachardan keyin kelgan belgi bilan tenglik belgisidan keyin kelganbutun son ,text(matn), kasr , belgilarni tenglashtirib beradi.

int a = 10 ;

float PI = 3.14;
float r = L/(2*PI);
flo…


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

Tenglik belgisi = bu belgi replitda int,stringfloatvachardan keyin kelgan belgi bilan tenglik belgisidan keyin kelganbutun son ,text(matn), kasr , belgilarni tenglashtirib beradi.

  int a = 10 ;
 float PI = 3.14;
  float r = L/(2*PI);
  float S = PI * (r*r);

  string ism = "davron";

assignment operator
biz yozgan ko'dlarni qisqartirib yozib beradi.

b = b + a; //b += a;
b = b - a; //b -= a; 
b = b / a; //b /= a;
b = b * a; //b *= a;

Biz yozgan o'zgaruvchilarni keyinchalik ham o'zgartirsa bo'ladi.

#include <iostream>
#include <cmath>
using namespace std;
int main (){
  int a = 7;
  string ism = "Abror";

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

  a = 10;
  ism = "Sardor";
  cout << a << endl;
  cout << ism;

return 0;
}

@dawroun


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


Print Share Comment Cite Upload Translate Updates
APA

Abror_8640 | Sciencx (2022-12-23T13:40:24+00:00) assigment operator haqida;. Retrieved from https://www.scien.cx/2022/12/23/assigment-operator-haqida/

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

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.