Recherche d'un algorythme
cobra
-
simohamed -
simohamed -
Quelqu'un a un algorythme (en c ou c++) pour déterminer si une année est bisextile ou non ? Ou sinon ou pourrais-je en trouver un ?
Merci
Cobra
Merci
Cobra
3 réponses
-
fonction bissextile(E : a :entier) : booleen
debut
si(a%1000 =0 ou (a%4 =0 et a%100!=0)) alors
retourner vrai //bissextile
sinon
retourner faux //pas bissextile
fin si
fin
tafiscobar -
Voici ma fonction en JS :
function bissex(an) {
return (an%400 == 0 ) | (( an%4 == 0 ) & ( an%100 != 0 )) ;
}
PS : pas de "y" à "algorithme" !!! -
halo cobra bein je voudrais savoir est ce que vous avez des programmes pour gestions commerciales en languange pascal
merci