Posts by Aragon • 31 points
2 posts
-
0
votes2
answers40
viewsQ: When I type 1 he doesn’t ask the questions dnv, and I can’t fix it
When the user chooses to continue (option 1) not appearing to type the sides of the triangle again #include <stdio.h> #include <stdlib.h> int main() { int x, y ,z, o; printf ("Informe o…
-
1
votes2
answers2087
viewsQ: How to draw numbers from a list, randomly and without repetitions?
How do I draw 9 numbers in a list of 15, without repeating the numbers drawn? I use Python 3.8. import random for c in range (1, 16): n1 = str(input("Digite um nº: ")) l = [n1] random.shuffle(l)…