Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
December 23, 2022 01:40 pm GMT

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);  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


Original Link: https://dev.to/abrorjon8640/assigment-operator-haqida-4j86

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To