Frage 1
Frage
print("Primer Programa")
a=[blank_start]int[blank_end](input("dame un numero: "))
b=85
c= a+b
d=[blank_start]a*b[blank_end]
print("El resultado de la suma es ",[blank_start]c[blank_end])
print("El resultado de la multiplicación es ",[blank_start]d[blank_end])
Antworten
-
int
-
INT
-
Ini
-
Inpuc
-
d
-
x
-
w
-
a*b
-
a/b
-
a#b
-
c
-
t
-
u
-
i
Frage 2
Frage
print("Primer Programa")
[blank_start]a[blank_end]=int(input("dame un numero: "))
i=1
[blank_start]while[blank_end] (i<=a):
print(i)
[blank_start]i=i+1[blank_end]
Antworten
-
a
-
w
-
t
-
z
-
for
-
while
-
if
-
do
-
i=i+1
-
a++
-
i--
-
a=a+1
Frage 3
Frage
[blank_start]a[blank_end]=int(input("dame un numero: "))
i=1
while (i<=a)[blank_start]:[blank_end]
if i[blank_start]%[blank_end]2==0:
print([blank_start]i[blank_end])
i=[blank_start]i+1[blank_end]
Frage 4
Frage
a=[blank_start]int[blank_end](input("dame un numero: "))
i=1
while (i<=a):
[blank_start]if[blank_end] i%2[blank_start]![blank_end]=0:
print([blank_start]i[blank_end])
i=i+1
Antworten
-
do
-
Float
-
Integer
-
int
-
!
-
=
-
+
-
?
-
a
-
i
-
x
-
c
-
if
-
while
-
For
-
do
Frage 5
Frage
a=int(input("dame un numero: "))
b=int(input("dame un numero: "))
while ([blank_start]a<=b[blank_end]):
if a[blank_start]%[blank_end]2==0:
print([blank_start]a[blank_end])
[blank_start]a=a+1[blank_end]
Frage 6
Frage
for [blank_start]i[blank_end] in range(0,[blank_start]4+1[blank_end]):
vec2[i]=[blank_start]int[blank_end](input("Dame un valor"))
Frage 7
Frage
vec1=[[blank_start]0,0,0,0,0[blank_end]]
for i [blank_start]in[blank_end] range(0,4+1):
[blank_start]vec1[blank_end][i]=int(input("Dame un valor"))
Frage 8
Frage
[blank_start]vec1[blank_end]=[0,0,0,0,0]
vec2=[0,0,0,0,0]
vec3=[0,0,0,0,0]
[blank_start]for[blank_end] i in range(0,4+1):
vec1[i]=int(input("Dame un valor"))
for i in range(0,4+1):
vec2[[blank_start]i[blank_end]]=int(input("Dame un valor"))
for i in range(0,4+1):
vec3[i][blank_start]=[blank_end]vec1[i]+vec2[i]
for i in range(0,4+1):
print([blank_start]vec3[i][blank_end])
Antworten
-
vec1
-
Vec
-
MAt
-
for
-
while
-
if
-
i
-
c
-
a
-
w
-
vec3[i]
-
vec1[i]
-
vec[a]
-
=
-
==
-
!=
Frage 9
Frage
Declaración de vector de 5 posiciones en blanco
vec3=[[blank_start]0,0,0,0,0[blank_end]]
Frage 10
Frage
mat=[blank_start][0,0],[0,0][blank_end]
for [blank_start]j[blank_end] in range(0,1+1):
for [blank_start]i[blank_end] in range(0,1+1):
mat[j][i]=[blank_start]int[blank_end](input("Dame un valor"))
for j in range(0,1+1):
for i in range(0,1+1):
[blank_start]print[blank_end]([blank_start]mat[j][i][blank_end])
Antworten
-
[0,0],[0,0]
-
0 0 0 0
-
1 1 1 1
-
j
-
k
-
l
-
i
-
g
-
ñ
-
mat[j][i]
-
vect[0][0]
-
mat=[0,0],[0,0]
-
for j in range(0,1+1):
-
int
-
ini
-
do
-
print
-
PRint
-
Fint