What is Algorithm in C++?

dawroun

Davron

Posted on November 15, 2022

What is Algorithm in C++?

Algoritm - ma'lum bir muammoni hal qilish yoki hisob kitob amalga oshirish uchun qo'llaniladigan protsess yoki qoidalar to'plami.

Algoritmlar odatda quyidagi belgilarga ega:

  • Input: 0 yoki bir necha inputlar;
  • Output: 1 yoki undan ortiq outputlar;
  • Aniqlik: Aniq va sodda instruksiyalar;
  • Cheklanganlik: Cheklangan miqdordagi instruksiyalar;
  • Effectiveness: Har bir instruksiyani umumiy jarayon uchun katta ta'siri bor.

Hayotiy misol:

Limonad tayyorlash jarayoni.

Image description

Dasturlashdan misol:

Image description

💖 💪 🙅 🚩
dawroun
Davron

Posted on November 15, 2022

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

Sign up to receive the latest update from our blog.

Related

while, do-while and for loops in C++
beginners while, do-while and for loops in C++

March 7, 2024

If statements in C++
beginners If statements in C++

March 4, 2024

Operators and true folse .
beginners Operators and true folse .

March 14, 2023