Munisa Kuranbekova
Posted on October 29, 2024
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;
}
Yuqorida yozilgan kodni run qiladigan bo'lsak
15
5
50
2
chop etiladi.
`
💖 💪 🙅 🚩
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
webdev A Tale of WeakMap and WeakSet in JavaScript: The Guardians of Forgotten Secrets
November 29, 2024