This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Abror_8640
Tenglik belgisi =
bu belgi replitda int
,string
float
vachar
dan keyin kelgan belgi bilan tenglik belgisidan keyin kelganbutun son ,text(matn), kasr , belgi
larni 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;
}
This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Abror_8640
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/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.