Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
probl2_203700377
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
n=int(input()) while(n<1 and n>50): n=int(input()) x=float(input()) while(x<-10.0 and x>10.0): x=float(input()) p=0 potencia=0 oper=0 a=0 while(p<n): factorial=1 for i in range(2,a+1): factorial=factorial*i a=a+3 if(p%2==0): oper=oper+((x**potencia)/factorial) else: oper=oper-((x**potencia)/factorial) potencia=potencia+3 p=p+1 print("Omega (",x,") para",n,"termino(s) =",oper)
[
+
]
Show input
fork mode
|
history
|
discussion