DEV Community

Charos1mm
Charos1mm

Posted on

ASSIGMENT

Biz bugun assigmentni organdik .


int main1() {

int a= 10;
string ism = "davron";
cout << a << endl;
cout << ism << endl;
a =20;
ism ="kimsan";
cout << a << endl;
cout << ism;
 return 0;

}
Enter fullscreen mode Exit fullscreen mode

Hatoki masalalar yechishni ham organdik.

#include <iostream>
#include <cmath>
using namespace std;
int main () {
double L;
cin >> L;
  float PI = 3.14;
  float r = L/ (2*PI);
  float S =PI * (r * r);
  cout << round (S);
return 0;
}
Enter fullscreen mode Exit fullscreen mode

KUNDAN KUNGA DARSIMIZA QIZIQARLI BOLIB BORMOQDA.BIZLAR JUDA KOP NARSALARNI ORGANDIK .
MASALAN BULARGA MISOL: # include <iostream > bu digani kutbxona chaqirish digani, /degani bu butun son chiqarish degani,%esa qoldig'ini chiqarib beradi,assignment ham organdik.

Assignmentbiz 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
Enter fullscreen mode Exit fullscreen mode

@dawroun

Top comments (1)

Collapse
 
dawroun profile image
Davron

zo'r, malades