Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

help me for calculate the number of operation ,for ex( i:=i+1)operation.

1 vue (au cours des 30 derniers jours)
ime sem
ime sem le 4 Jan 2014
Clôturé : Walter Roberson le 4 Jan 2014
L'algorithme:
fonction pgd (n:entier)
var i:entier
debut i:=2
tanque(i<=n/2 et(n mod i)!0 faire
i:=i+1
fintantque
si(n mod i)=0alors pgd:=n div i
sinon pgd:=n
fin si
fin

Réponses (0)

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by