Multiplier sans *
Programmer la fonction multiplication :
-
prenant en paramètres deux nombres entiers
aetb, -
renvoyant le produit de ces deux nombres.
Exemples
>>> multiplication(3, 5)
15
>>> multiplication(-4, -8)
32
>>> multiplication(-2, 6)
-12
>>> multiplication(3, -4)
-12
>>> multiplication(-2, 0)
0
Contrainte
Les seules opérations autorisées sont l'addition et la soustraction !
Indications
-
On rappelle que si \(n\) est un nombre négatif, \(-n\) est un nombre positif.
-
On a \(5 \times (-3) = -5\times 3=0 +(- 5)+(- 5)+(- 5)\) !
Tronquer ou non le feedback dans les terminaux (sortie standard & stacktrace / relancer le code pour appliquer)
Si activé, le texte copié dans le terminal est joint sur une seule ligne avant d'être copié dans le presse-papier
.128013xA3Sytbi,Iq6)f4_d7ug:khe8 sPar(5.lRàvow21/m+n0p;=c-9050r0y0g0D0i0I0B0A0Y0I0D0B0B0X010g0i0V010406050B0t0R0R0D0E0f040e0M0I0t0^0M0T0A020D0R0V0W0A0J0y120E0l0t0y0B050Q0 1113150}0V041t1A051D0Q1D1F1A0}0r0i0L0-0/0;0?0x0i0u0x0I1T0x0g0{050(0h0I0y1O0:0=011S1U1W1U0g1$1(1!0g0h0M0r151#0E1B0g0x0-180B0V0D0T0?0O011*1Q010o0*0y0T1g0y1!25272c1,2f1(2i0R2k040a0A0C0E0M0V0M0B0i1b1d0$230E0E0y0Y2F1t2m0T1B0Q212R0g1 1~200r2o0?1W0T2h2C1!1L1N0.1+2#0i2%0T1{1M1!0V2K1B2P2R2|0~261d2-2d2=0E120I0{0A0P2O300|2 2n321,3436380O3b273d2P2!013i0D37040A0d3m2Q0}3p3g0?3s3u0A0p3y3o303q3E380G3I3A3K3C3r0M353t380m3P3e311P3h3U3j3v0s3Z3B3$3D3(3W3v0z3,3R3.3T3V3F0!3@3f3_3M040P0U3I1C2`1t2+2U0r2Y3q0Y1{2u0#1M1B2_0y2{3c454e0$4m3 2.010w0{0$0o453-4t0N384z3^4t0T0o0{0R0t0I0^0V1W0Y0D2N1u4n4A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