Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
EJ2_PYTHON_207266167
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
#Catalina Hernández #20.726.616-7 #LA LECTURA DE N DEBE SER CON UN WHILE N=0 while (N<1) or (N>50) : N= int(input()) X=-13.0 while (X<-10.0) or (X>10.0) : X= float(input()) omega=0 i=0 exponente=0 while (i<=N) : denominador=1 u=1 for u in range(1,exponente+1) : denominador *=u omega= ((X**exponente)/denominador) + (omega*-1) exponente += 3 i +=1 print('OMEGA(',X,') para', N,' termino(s) =', omega)
10 9.85
[
-
]
Show input
Absolute running time: 0.21 sec, cpu time: 0.05 sec, memory peak: 8 Mb, absolute service time: 0,33 sec
edit mode
|
history
|
discussion