myCompiler myCompiler
Deutsch English Español Français Italiano 日本語 한국어 Nederlands Polski Português
Recent
Login Sign up
Recent
Login Sign up
L

@Laure

Séance04_Factorielle

Python
1 year ago
def factorielle(n): if n == 0: p=1 else: p=1 for i in range(1,n+1): p=p*i return (p) n = 1558

suite_un_peu_particulière

Python
1 year ago
# valeur de départ u = int(input("saisir la valeur de u0 : ")) print (u,"") # nombre de terma a calculer N = int(input("combien de terme a calculer ? ")) print(N,"") # cacul des N-1 termes suivants de la suite u for in range(1,N):

CalculSommeTermes1.Py

Python
1 year ago
u=3 S=u print (u, S) for i in range (1,8): u=((1/2)*u)+1 S=S+u print (u, S)

séance01_VariablesBooleennes

Python
1 year ago
a=int(input("saisir un nombre entier")) print("") print(a) test_parité = (a%2 == 0) print(test_parité) b=float(input("saisir un noombre réel")) print("") print(b) test_égalité = (b==a) print(test_égalité)
Previous Next page

Supported languages

Deno JavaScript NodeJS Python Ruby Go C C++ Java C# TypeScript PHP Bash R Octave (MATLAB) Fortran Lua Erlang SQL MySQL MongoDB Clojure D Perl Kotlin Swift Rust Assembly
© 2026 mycompiler.io
Terms of service Privacy policy Contact us