DEV Community

Munisa Kuranbekova
Munisa Kuranbekova

Posted on

Arifmetik operatorlar haqida

Assalomu aleykum! Bugun biz c++ dasturlash tilida arifmetik amallar ya'ni hammamiz taniydigan matematik amallar haqida gaplashamiz.
Arifmetik amallar deb +(add) , -(subtract), /(divide), *(multiplicate) larni o'z ichiga oladi.
Kod orqali tushuntiriladigan bo'lsa:

`#include <iostream>

using namespace std;

int main()
{
int son1 = 10, son2 = 5;

cout << son1 + son2 << endl;
cout << son1 - son2 << endl;
cout << son1 * son2 << endl;
cout << son1 / son2 << endl;

return 0;
}

Enter fullscreen mode Exit fullscreen mode

Yuqorida yozilgan kodni run qiladigan bo'lsak
15
5
50
2
chop etiladi.

`

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay