Arifmetik operatorlar haqida

Munisa Kuranbekova - Oct 29 - - Dev Community

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.

`

. . . . . . . . . . . .
Terabox Video Player