Notizen
Ohne Titel
Inhalt der Notizen (1)
Seite 1
Algorithms using Python
ALgorithm:
It is a way or (list of instructions) that is used to solve a programming problem in easy and efficient way.
In other words we can say that it is step-by-step solution of a program.It make easy to write a program in efficient way.
Ex:
write an algorithm to add n numbers?
Ans:
step 1:
function addNumbers(n)
result <---- 0
for i in range(n)
result+=i
return result
Informationen
- Beschreibung
- Notiz am Ohne Titel, erstellt von Basant Lal am 06/06/2019.
- Erstellt von
- Basant Lal · Jun 2019
- Aktualisiert
- 6 Jun 2019
- Aufrufe
- 0
- Bewertung