remove C1/vs files

This commit is contained in:
divingeek 2025-08-26 18:39:32 +02:00
parent eb3c7313c5
commit 5e47d1853c
73 changed files with 0 additions and 365 deletions

View file

@ -1,4 +0,0 @@
if x < 4:
x = x + 3
else:
x = x - 3

View file

@ -1,3 +0,0 @@
n = 1
while n != 20:
n = n + 2

View file

@ -1,3 +0,0 @@
while (a < 20) or (b > 50):
......
......

View file

@ -1,3 +0,0 @@
floor(x)
Return the floor of x as an Integral. This is the largest in
teger <= x.

View file

@ -1,3 +0,0 @@
x = 1
for i in range(10):
x = x * 2

View file

@ -1,5 +0,0 @@
def comparaison(a,b):
if a < b:
return a
else:
return b

View file

@ -1,4 +0,0 @@
m = L[0]
for j in range(len(L)):
if m < L[j]:
m = L[j]

View file

@ -1,7 +0,0 @@
a = 4
b = 4
c = 4
while a < 5:
a = a - 1
b = b + 1
c = c * b

View file

@ -1,6 +0,0 @@
def moyenne(notes):
somme = 0
for cpt in range(len(notes)):
....
m = somme/len(notes)
return m

View file

@ -1,5 +0,0 @@
def factorielle(n):
f = 1
.........
f = f * i
return f

View file

@ -1,5 +0,0 @@
def ajoute(n,p):
somme = 0
for i in range(.........): # ligne à modifier
somme = somme + i
return somme

View file

@ -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)

View file

@ -1,4 +0,0 @@
from math import sqrt
def racine_du_double(x):
return sqrt(2*x)

View file

@ -1,9 +0,0 @@
def essai():
a = 2
b = 3
c = 4
return a
return b
return c
t = essai()

View file

@ -1 +0,0 @@
resultat = [0] * 7

View file

@ -1,5 +0,0 @@
def somme(T, a, b):
S = 0
for i in range(a, b+1) :
S = S + T[i]
return S

View file

@ -1,6 +0,0 @@
def maximum(L):
m = L[0]
for i in range(1,len(L)):
if .........:
m = L[i]
return m

View file

@ -1 +0,0 @@
import os

View file

@ -1,5 +0,0 @@
def f(x,y,z):
if x+y == z:
return True
else:
return False

View file

@ -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

View file

@ -1,6 +0,0 @@
def f(n):
c = 0
while n > 0:
c = c + 1
n = n // 2
return c

View file

@ -1,5 +0,0 @@
def puissance (x,y):
p = x
for i in range (y - 1):
p = p * x
return p

View file

@ -1,3 +0,0 @@
tableau1 = [1, 2, 3]
tableau2 = [4, 5, 6]
long = len(tableau1 + tableau2)

View file

@ -1,3 +0,0 @@
a = a - b
b = a + b
a = ......

View file

@ -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

View file

@ -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

View file

@ -1,6 +0,0 @@
a = 3
b = 6
if a > 5 or b != 3:
b = 4
else:
b = 2

View file

@ -1,6 +0,0 @@
a = 2
b = 5
if a > 8:
b = 10
elif a > 6:
b = 3

View file

@ -1,3 +0,0 @@
i = 0
while 2**i < A :
i = i + 1

View file

@ -1,6 +0,0 @@
i = 0
while (i < 10) {
alert(i)
i = i + 1
}
alert("Fin")

View file

@ -1,4 +0,0 @@
a = 2
b = 3
c = a ** b
d = c % b

View file

@ -1,5 +0,0 @@
n = 6
s = 0
while n >= 0:
s = s + n
n = n -1

View file

@ -1,3 +0,0 @@
def maxi(x,y) :
m = (x-y+abs(x+y))/2
return m

View file

@ -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

View file

@ -1,9 +0,0 @@
a = 10
if a < 5:
a = 20
elif a < 100:
a = 500
elif a < 1000:
a = 1
else:
a = 0

View file

@ -1,5 +0,0 @@
def puiss(y,x):
res = y
for i in range(x):
res = res*y
return res

View file

@ -1,3 +0,0 @@
n = 1
for i in range(4):
n = n + 2

View file

@ -1,5 +0,0 @@
def rey(n):
i = 0
while i <= n:
i = 2*i
return i

View file

@ -1,3 +0,0 @@
L = []
for i in range(1,11,2)
L.append(5*i)

View file

@ -1,5 +0,0 @@
L = []
# ligne 1 .......
while i < 11:
L.append(5*i)
# ligne 2 .......

View file

@ -1,5 +0,0 @@
def cube(a):
a = a*a*a
return a
a = 2
b = cube(a)

View file

@ -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)

View file

@ -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

View file

@ -1,7 +0,0 @@
def f(x):
y = 2*x + 1
return y
def calcul(x):
y = x - 1
return f(y)

View file

@ -1,6 +0,0 @@
x = 4
while x > 0:
y = 1
while y < x:
y = y + 1
x = x - 1

View file

@ -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

View file

@ -1,6 +0,0 @@
def minimum(L):
mini = 0
for e in L:
if e < mini:
mini = e
return mini

View file

@ -1,5 +0,0 @@
def somme(L):
s = L[0]
for i in range(len(L)):
s = s + L[i]
return s

View file

@ -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

View file

@ -1,4 +0,0 @@
a = 11
for i in range(3):
a = a * 2
a = a - 10

View file

@ -1,3 +0,0 @@
a,b = 10,3
if a < 10:
a,b = a+2,b+a

View file

@ -1,6 +0,0 @@
if a==b:
c = True
elif a > b+10:
c = True
else:
c = False

View file

@ -1,4 +0,0 @@
def f(a,b):
assert b!=0,'le deuxième argument est nul'
result = a/b
return result

View file

@ -1,6 +0,0 @@
def maximum(L):
m = L[0]
for i in range(1,len(L)):
..............
..............
return m

View file

@ -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

View file

@ -1,4 +0,0 @@
import math
def aireDisque(R):
return math.pi * R**2

View file

@ -1,7 +0,0 @@
def f(a,m):
i = 1
n = 0
while n <= m:
i = i * a
n = n + 1
return i

View file

@ -1,5 +0,0 @@
def f(x,y):
x = x + y
y = x - y
x = x - y
return (x,y)

View file

@ -1,6 +0,0 @@
def mystere(T):
s = 0
for k in T:
if k % 2 == 0:
s = s+k
return s

View file

@ -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)

View file

@ -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

View file

@ -1,7 +0,0 @@
def factorielle(n):
i = 0
fact = 1
while i <= n:
fact = fact * i
i = i + 1
return fact

View file

@ -1,7 +0,0 @@
def factorielle(n):
i = 1
fact = 1
while i < n:
fact = fact * i
i = i + 1
return fact

View file

@ -1,7 +0,0 @@
def factorielle(n):
i = 0
fact = 1
while i < n:
i = i + 1
fact = fact * i
return fact

View file

@ -1,7 +0,0 @@
def factorielle(n):
i = 0
fact = 1
while i <= n:
i = i + 1
fact = fact * i
return fact

View file

@ -1,2 +0,0 @@
if m < L[i]:
L[i] = m

View file

@ -1,2 +0,0 @@
if L[i-1] < L[i]:
m = L[i]

View file

@ -1,2 +0,0 @@
if L[i] < L[0]:
L[i],L[0] = L[0],L[i]

View file

@ -1,2 +0,0 @@
if L[i] > m:
m = L[i]

View file

@ -1,2 +0,0 @@
import GeomPlan
GeomPlan.aireDisque(8)

View file

@ -1,2 +0,0 @@
import GeomPlan
aireDisque(8)

View file

@ -1,2 +0,0 @@
from GeomPlan import *
aireDisque(8)

View file

@ -1,2 +0,0 @@
from GeomPlan import aireDisque
aireDisque(8)