remove C1/vs files
This commit is contained in:
parent
eb3c7313c5
commit
5e47d1853c
73 changed files with 0 additions and 365 deletions
|
|
@ -1,4 +0,0 @@
|
|||
if x < 4:
|
||||
x = x + 3
|
||||
else:
|
||||
x = x - 3
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
n = 1
|
||||
while n != 20:
|
||||
n = n + 2
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
while (a < 20) or (b > 50):
|
||||
......
|
||||
......
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
floor(x)
|
||||
Return the floor of x as an Integral. This is the largest in
|
||||
teger <= x.
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
x = 1
|
||||
for i in range(10):
|
||||
x = x * 2
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
def comparaison(a,b):
|
||||
if a < b:
|
||||
return a
|
||||
else:
|
||||
return b
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
m = L[0]
|
||||
for j in range(len(L)):
|
||||
if m < L[j]:
|
||||
m = L[j]
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
a = 4
|
||||
b = 4
|
||||
c = 4
|
||||
while a < 5:
|
||||
a = a - 1
|
||||
b = b + 1
|
||||
c = c * b
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
def moyenne(notes):
|
||||
somme = 0
|
||||
for cpt in range(len(notes)):
|
||||
....
|
||||
m = somme/len(notes)
|
||||
return m
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
def factorielle(n):
|
||||
f = 1
|
||||
.........
|
||||
f = f * i
|
||||
return f
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
def ajoute(n,p):
|
||||
somme = 0
|
||||
for i in range(.........): # ligne à modifier
|
||||
somme = somme + i
|
||||
return somme
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
def f(t):
|
||||
n = len(t)
|
||||
for i in range(n-1):
|
||||
if t[i] > t[i+1]:
|
||||
t[i],t[i+1] = t[i+1],t[i]
|
||||
|
||||
L = [4, 8, -7, 0, 1]
|
||||
f(L)
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
from math import sqrt
|
||||
|
||||
def racine_du_double(x):
|
||||
return sqrt(2*x)
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
def essai():
|
||||
a = 2
|
||||
b = 3
|
||||
c = 4
|
||||
return a
|
||||
return b
|
||||
return c
|
||||
|
||||
t = essai()
|
||||
|
|
@ -1 +0,0 @@
|
|||
resultat = [0] * 7
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
def somme(T, a, b):
|
||||
S = 0
|
||||
for i in range(a, b+1) :
|
||||
S = S + T[i]
|
||||
return S
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
def maximum(L):
|
||||
m = L[0]
|
||||
for i in range(1,len(L)):
|
||||
if .........:
|
||||
m = L[i]
|
||||
return m
|
||||
|
|
@ -1 +0,0 @@
|
|||
import os
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
def f(x,y,z):
|
||||
if x+y == z:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
def maFonction(c):
|
||||
if c <= 10:
|
||||
p = 12
|
||||
if c <= 18:
|
||||
p = 15
|
||||
if c <= 40:
|
||||
p = 19
|
||||
else:
|
||||
p = 20
|
||||
return p
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
def f(n):
|
||||
c = 0
|
||||
while n > 0:
|
||||
c = c + 1
|
||||
n = n // 2
|
||||
return c
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
def puissance (x,y):
|
||||
p = x
|
||||
for i in range (y - 1):
|
||||
p = p * x
|
||||
return p
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
tableau1 = [1, 2, 3]
|
||||
tableau2 = [4, 5, 6]
|
||||
long = len(tableau1 + tableau2)
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
a = a - b
|
||||
b = a + b
|
||||
a = ......
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
def f(t):
|
||||
n = len(t)
|
||||
for i in range(n-1):
|
||||
for j in range(i+1,n):
|
||||
if t[i] == t[j]:
|
||||
return True
|
||||
return False
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
def maximum(tableau):
|
||||
tmp = tableau[0]
|
||||
for i in range(......): # à compléter
|
||||
if tableau[i] > tmp:
|
||||
tmp = tableau[i]
|
||||
return tmp
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
a = 3
|
||||
b = 6
|
||||
if a > 5 or b != 3:
|
||||
b = 4
|
||||
else:
|
||||
b = 2
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
a = 2
|
||||
b = 5
|
||||
if a > 8:
|
||||
b = 10
|
||||
elif a > 6:
|
||||
b = 3
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
i = 0
|
||||
while 2**i < A :
|
||||
i = i + 1
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
i = 0
|
||||
while (i < 10) {
|
||||
alert(i)
|
||||
i = i + 1
|
||||
}
|
||||
alert("Fin")
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
a = 2
|
||||
b = 3
|
||||
c = a ** b
|
||||
d = c % b
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
n = 6
|
||||
s = 0
|
||||
while n >= 0:
|
||||
s = s + n
|
||||
n = n -1
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
def maxi(x,y) :
|
||||
m = (x-y+abs(x+y))/2
|
||||
return m
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
def fib(n):
|
||||
t = [0] * n
|
||||
t[1] = 1
|
||||
for i in range(2,n):
|
||||
t[i] = t[i-1] + t[i-2]
|
||||
return t
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
a = 10
|
||||
if a < 5:
|
||||
a = 20
|
||||
elif a < 100:
|
||||
a = 500
|
||||
elif a < 1000:
|
||||
a = 1
|
||||
else:
|
||||
a = 0
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
def puiss(y,x):
|
||||
res = y
|
||||
for i in range(x):
|
||||
res = res*y
|
||||
return res
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
n = 1
|
||||
for i in range(4):
|
||||
n = n + 2
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
def rey(n):
|
||||
i = 0
|
||||
while i <= n:
|
||||
i = 2*i
|
||||
return i
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
L = []
|
||||
for i in range(1,11,2)
|
||||
L.append(5*i)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
L = []
|
||||
# ligne 1 .......
|
||||
while i < 11:
|
||||
L.append(5*i)
|
||||
# ligne 2 .......
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
def cube(a):
|
||||
a = a*a*a
|
||||
return a
|
||||
a = 2
|
||||
b = cube(a)
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
def cube(L):
|
||||
for i in range(len(L)):
|
||||
L[i] = L[i] * L[i] * L[i]
|
||||
return L
|
||||
|
||||
L = [2, 5]
|
||||
b = cube(L)
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
def capital_double (capital, interet):
|
||||
montant = capital
|
||||
n = 0
|
||||
while montant <= 2 * capital:
|
||||
montant = montant + interet
|
||||
n = n + 1
|
||||
return n
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
def f(x):
|
||||
y = 2*x + 1
|
||||
return y
|
||||
|
||||
def calcul(x):
|
||||
y = x - 1
|
||||
return f(y)
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
x = 4
|
||||
while x > 0:
|
||||
y = 1
|
||||
while y < x:
|
||||
y = y + 1
|
||||
x = x - 1
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
def calculPourcentage (prix,reduction):
|
||||
assert reduction >= 0, 'la réduction doit être un nombre p
|
||||
ositif'
|
||||
assert reduction < 100, 'la réduction doit être inférieure
|
||||
à 100'
|
||||
assert prix > 0, 'le prix doit être un nombre strictement
|
||||
positif'
|
||||
remise = (reduction*prix)/100
|
||||
prix_remise = prix - remise
|
||||
return prix_remise
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
def minimum(L):
|
||||
mini = 0
|
||||
for e in L:
|
||||
if e < mini:
|
||||
mini = e
|
||||
return mini
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
def somme(L):
|
||||
s = L[0]
|
||||
for i in range(len(L)):
|
||||
s = s + L[i]
|
||||
return s
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
def f(L,m):
|
||||
R = []
|
||||
for i in range(len(L)):
|
||||
if L[i] > m:
|
||||
R.append(L[i])
|
||||
return R
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
a = 11
|
||||
for i in range(3):
|
||||
a = a * 2
|
||||
a = a - 10
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
a,b = 10,3
|
||||
if a < 10:
|
||||
a,b = a+2,b+a
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
if a==b:
|
||||
c = True
|
||||
elif a > b+10:
|
||||
c = True
|
||||
else:
|
||||
c = False
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
def f(a,b):
|
||||
assert b!=0,'le deuxième argument est nul'
|
||||
result = a/b
|
||||
return result
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
def maximum(L):
|
||||
m = L[0]
|
||||
for i in range(1,len(L)):
|
||||
..............
|
||||
..............
|
||||
return m
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
def maxi(L):
|
||||
dernier_indice = len(L) - 1
|
||||
valeur_max = L[0]
|
||||
for i in range(1,dernier_indice):
|
||||
if L[i] > valeur_max:
|
||||
valeur_max = liste[i]
|
||||
return valeur_max
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
import math
|
||||
|
||||
def aireDisque(R):
|
||||
return math.pi * R**2
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
def f(a,m):
|
||||
i = 1
|
||||
n = 0
|
||||
while n <= m:
|
||||
i = i * a
|
||||
n = n + 1
|
||||
return i
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
def f(x,y):
|
||||
x = x + y
|
||||
y = x - y
|
||||
x = x - y
|
||||
return (x,y)
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
def mystere(T):
|
||||
s = 0
|
||||
for k in T:
|
||||
if k % 2 == 0:
|
||||
s = s+k
|
||||
return s
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
def calcul(a,b):
|
||||
a = a + 2
|
||||
b = b + 5
|
||||
c = a + b
|
||||
return c
|
||||
|
||||
a,b = 3,5
|
||||
calcul(a,b)
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
def ranger(a, b, c):
|
||||
if a > b :
|
||||
a, b = b, a
|
||||
if b > c:
|
||||
b, c = c, b
|
||||
return a, b, c
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
def factorielle(n):
|
||||
i = 0
|
||||
fact = 1
|
||||
while i <= n:
|
||||
fact = fact * i
|
||||
i = i + 1
|
||||
return fact
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
def factorielle(n):
|
||||
i = 1
|
||||
fact = 1
|
||||
while i < n:
|
||||
fact = fact * i
|
||||
i = i + 1
|
||||
return fact
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
def factorielle(n):
|
||||
i = 0
|
||||
fact = 1
|
||||
while i < n:
|
||||
i = i + 1
|
||||
fact = fact * i
|
||||
return fact
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
def factorielle(n):
|
||||
i = 0
|
||||
fact = 1
|
||||
while i <= n:
|
||||
i = i + 1
|
||||
fact = fact * i
|
||||
return fact
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
if m < L[i]:
|
||||
L[i] = m
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
if L[i-1] < L[i]:
|
||||
m = L[i]
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
if L[i] < L[0]:
|
||||
L[i],L[0] = L[0],L[i]
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
if L[i] > m:
|
||||
m = L[i]
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
import GeomPlan
|
||||
GeomPlan.aireDisque(8)
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
import GeomPlan
|
||||
aireDisque(8)
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
from GeomPlan import *
|
||||
aireDisque(8)
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
from GeomPlan import aireDisque
|
||||
aireDisque(8)
|
||||
Loading…
Add table
Add a link
Reference in a new issue