Arifmetik operatorlar haqida

munisa_kuranbekova_078e1e

Munisa Kuranbekova

Posted on October 29, 2024

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.

`

💖 💪 🙅 🚩
munisa_kuranbekova_078e1e
Munisa Kuranbekova

Posted on October 29, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related